/* ============================================================
   ROGUDA Fashion — Terms of Service Page Styles
   Deploy to: assets/css/terms.css
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Outfit', sans-serif; background: #0A0A0A; color: #F8F4EE; overflow-x: hidden; }

:root {
  --gold: #C9A84C;
  --gold-light: #E8C97A;
  --black: #0A0A0A;
  --charcoal: #141414;
  --dark: #1A1A1A;
  --off-white: #F8F4EE;
  --warm-gray: #8A8070;
  --border: rgba(201,168,76,0.16);
}

/* ── Loader ── */
#pageLoader {
  position: fixed; inset: 0; z-index: 99999;
  background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: opacity .6s ease, visibility .6s ease;
}
#pageLoader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-logo { display: flex; flex-direction: column; align-items: center; gap: 20px; animation: lfi .8s ease both; }
@keyframes lfi { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.loader-badge { width: 72px; height: 72px; border: 1.5px solid var(--gold); border-radius: 4px; overflow: hidden; box-shadow: 0 0 40px rgba(201,168,76,.15); }
.loader-badge img { width: 100%; height: 100%; object-fit: cover; }
.loader-wordmark { font-family: 'Playfair Display', serif; font-size: 28px; font-weight: 700; letter-spacing: 6px; text-transform: uppercase; color: var(--off-white); }
.loader-tagline { font-size: 9px; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-top: -10px; animation: lfi .8s .2s ease both; }
.loader-bar-wrap { width: 180px; height: 1px; background: rgba(201,168,76,.15); margin-top: 48px; overflow: hidden; animation: lfi .8s .3s ease both; }
.loader-bar { height: 100%; background: linear-gradient(90deg, transparent, var(--gold), var(--gold-light)); width: 0; animation: lp 1.8s .4s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes lp { to { width: 100%; } }
.loader-percent { font-size: 10px; letter-spacing: 3px; color: rgba(201,168,76,.5); margin-top: 12px; animation: lfi .8s .4s ease both; }
.loader-corner { position: absolute; width: 28px; height: 28px; }
.loader-corner.tl { top: 40px; left: 40px; border-top: 1px solid rgba(201,168,76,.3); border-left: 1px solid rgba(201,168,76,.3); }
.loader-corner.tr { top: 40px; right: 40px; border-top: 1px solid rgba(201,168,76,.3); border-right: 1px solid rgba(201,168,76,.3); }
.loader-corner.bl { bottom: 40px; left: 40px; border-bottom: 1px solid rgba(201,168,76,.3); border-left: 1px solid rgba(201,168,76,.3); }
.loader-corner.br { bottom: 40px; right: 40px; border-bottom: 1px solid rgba(201,168,76,.3); border-right: 1px solid rgba(201,168,76,.3); }

/* ── Scroll To Top ── */
#scrollTop {
  position: fixed; bottom: 32px; right: 32px; width: 44px; height: 44px;
  background: var(--gold); color: var(--black);
  border: none; cursor: pointer; font-size: 15px;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transition: all .3s ease; z-index: 900;
}
#scrollTop.show { opacity: 1; visibility: visible; }
#scrollTop:hover { background: var(--gold-light); transform: translateY(-4px); }

/* ── Navigation ── */
.nav-cinematic {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 18px 60px; display: flex; align-items: center; transition: all .4s ease;
  background: rgba(10,10,10,.95); backdrop-filter: blur(20px); border-bottom: 1px solid var(--border);
}
.nav-cinematic.scrolled {
  padding: 14px 60px; background: rgba(10,10,10,.98);
}
.nav-container { width: 100%; max-width: 1400px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.logo-badge { width: 46px; height: 46px; border: 1.5px solid var(--gold); border-radius: 4px; overflow: hidden; flex-shrink: 0; transition: background .3s ease; }
.logo-badge img { width: 100%; height: 100%; object-fit: cover; }
.logo:hover .logo-badge { background: rgba(201,168,76,.15); }
.logo-text { font-family: 'Playfair Display', serif; font-size: 20px; font-weight: 700; color: var(--off-white); letter-spacing: 2px; }
.nav-back {
  font-size: 11px; font-weight: 600; letter-spacing: 2px; text-transform: uppercase;
  color: var(--gold); text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid rgba(201,168,76,.4); border-radius: 999px;
  padding: 9px 20px; background: rgba(201,168,76,.06);
  transition: all .3s ease;
}
.nav-back:hover { background: var(--gold); color: #000; border-color: var(--gold); }

/* ── Page Header ── */
.doc-header {
  padding: 160px 24px 60px; text-align: center;
  border-bottom: 1px solid rgba(201,168,76,.08);
}
.doc-header .label {
  display: inline-block; font-size: 10px; font-weight: 600;
  letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 16px;
}
.doc-header h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(36px, 5vw, 64px); font-weight: 900;
  color: var(--off-white); line-height: 1.1; margin-bottom: 16px;
}
.doc-header h1 em { color: var(--gold); font-style: italic; }
.doc-header .meta {
  font-size: 12px; font-weight: 300; color: var(--warm-gray); letter-spacing: 2px;
}
.doc-header .meta strong { color: var(--gold-light); font-weight: 500; }

/* ── Document Layout ── */
.doc-section { padding: 80px 0 100px; background: var(--charcoal); }
.doc-container { width: 90%; max-width: 860px; margin: 0 auto; }

/* Table of Contents */
.toc {
  border: 1px solid rgba(201,168,76,.12); background: rgba(201,168,76,.03);
  padding: 36px 40px; margin-bottom: 64px;
}
.toc-title { font-size: 10px; font-weight: 700; letter-spacing: 5px; text-transform: uppercase; color: var(--gold); margin-bottom: 20px; }
.toc-list { list-style: none; columns: 2; gap: 24px; }
.toc-list li { margin-bottom: 8px; break-inside: avoid; }
.toc-list a {
  font-size: 12px; font-weight: 300; color: var(--warm-gray);
  text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .3s ease;
}
.toc-list a::before { content: ''; width: 0; height: 1px; background: var(--gold); transition: width .3s ease; flex-shrink: 0; }
.toc-list a:hover { color: var(--gold); }
.toc-list a:hover::before { width: 12px; }

/* Policy sections */
.policy-section { margin-bottom: 52px; padding-top: 16px; }
.policy-section h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(18px, 2.5vw, 24px); font-weight: 700;
  color: var(--gold-light); margin-bottom: 16px;
  display: flex; align-items: center; gap: 12px;
}
.policy-section h2 .sec-num {
  font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 3px; color: rgba(201,168,76,.4); min-width: 28px;
}
.policy-section h3 {
  font-family: 'Outfit', sans-serif; font-size: 13px; font-weight: 600;
  letter-spacing: 2px; text-transform: uppercase; color: var(--warm-gray);
  margin: 28px 0 12px;
}
.policy-section p {
  font-size: 14px; font-weight: 300; line-height: 1.85;
  color: rgba(248,244,238,.72); margin-bottom: 14px;
}
.policy-section ul { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.policy-section ul li {
  font-size: 14px; font-weight: 300; line-height: 1.7;
  color: rgba(248,244,238,.72); padding-left: 20px; position: relative;
}
.policy-section ul li::before {
  content: ''; position: absolute; left: 0; top: 11px;
  width: 7px; height: 1px; background: var(--gold);
}
.policy-section ul li strong { color: var(--off-white); font-weight: 500; }
.policy-section a { color: var(--gold); text-decoration: none; }
.policy-section a:hover { text-decoration: underline; }

/* Divider */
.policy-divider { width: 100%; height: 1px; background: rgba(201,168,76,.1); margin: 52px 0; }

/* Acknowledgement box */
.acknowledgement-box {
  border: 1px solid rgba(201,168,76,.18); background: rgba(201,168,76,.04);
  padding: 36px 40px; margin: 20px 0;
}
.acknowledgement-box h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px; color: var(--gold); margin-bottom: 12px;
}
.acknowledgement-box p {
  font-size: 14px; font-weight: 300; line-height: 1.8;
  color: rgba(248,244,238,.72);
}

/* Action buttons */
.policy-actions { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 48px; }
.btn-action {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Outfit', sans-serif; font-size: 10px; font-weight: 700;
  letter-spacing: 3px; text-transform: uppercase;
  text-decoration: none; padding: 14px 32px; transition: all .3s ease;
}
.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 12px 32px rgba(201,168,76,.22); }
.btn-secondary { border: 1px solid rgba(201,168,76,.3); color: var(--gold); }
.btn-secondary:hover { background: rgba(201,168,76,.08); transform: translateY(-2px); }

/* ── Footer ── */
.footer-cinematic { background: var(--black); border-top: 1px solid rgba(201,168,76,.12); padding: 80px 0 0; }
.footer-container { width: 90%; max-width: 1280px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1.6fr auto; gap: 60px; padding-bottom: 60px; }
.footer-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.footer-contact { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.footer-contact p { font-size: 13px; color: var(--warm-gray); line-height: 1.6; }
.footer-contact a { color: var(--gold-light); text-decoration: none; transition: color .3s ease; }
.footer-contact a:hover { color: var(--gold); }
.footer-contact strong { color: var(--off-white); margin-right: 6px; }
.footer-nav { list-style: none; margin-top: 6px; }
.footer-nav li { margin-bottom: 12px; }
.footer-nav a { font-size: 13px; color: var(--warm-gray); text-decoration: none; display: inline-flex; align-items: center; gap: 8px; transition: color .3s ease; }
.footer-nav a::before { content: ''; width: 0; height: 1px; background: var(--gold); transition: width .3s ease; }
.footer-nav a:hover { color: var(--gold); }
.footer-nav a:hover::before { width: 14px; }
.newsletter-title { font-family: 'Playfair Display', serif; font-size: 18px; color: var(--gold); margin-bottom: 10px; }
.newsletter-text { font-size: 13px; color: var(--warm-gray); line-height: 1.6; margin-bottom: 18px; }
.newsletter-form .input-group { display: flex; border: 1px solid rgba(201,168,76,.24); }
.newsletter-form input { flex: 1; background: transparent; border: none; padding: 12px 16px; font-family: 'Outfit', sans-serif; font-size: 13px; color: var(--off-white); }
.newsletter-form input::placeholder { color: var(--warm-gray); }
.newsletter-form input:focus { outline: none; }
.btn-subscribe { background: var(--gold); border: none; padding: 0 18px; color: var(--black); font-size: 12px; font-weight: 600; cursor: pointer; transition: background .3s ease; display: flex; align-items: center; gap: 6px; }
.btn-subscribe:hover { background: var(--gold-light); }
.consent-note { font-size: 10px; color: rgba(138,128,112,.5); margin-top: 10px; line-height: 1.5; }
.footer-social { display: flex; gap: 10px; align-self: start; margin-top: 4px; }
.footer-social a { width: 38px; height: 38px; border: 1px solid rgba(201,168,76,.24); display: flex; align-items: center; justify-content: center; color: var(--warm-gray); text-decoration: none; font-size: 14px; transition: all .3s ease; }
.footer-social a:hover { background: var(--gold); border-color: var(--gold); color: var(--black); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.06); padding: 24px 0; }
.footer-bottom .copyright { width: 90%; max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; }
.footer-bottom p { font-size: 11px; color: rgba(138,128,112,.5); letter-spacing: .5px; }
.copyright-links a { font-size: 10px; letter-spacing: 1.5px; text-transform: uppercase; color: rgba(138,128,112,.45); text-decoration: none; margin: 0 8px; transition: color .3s ease; }
.copyright-links a:hover { color: var(--gold); }
.footer-credentials { display: flex; justify-content: center; align-items: center; gap: 10px; font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: rgba(201,168,76,.4); }
.footer-credentials .divider { color: rgba(201,168,76,.2); }
.copyright-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 2px; margin-top: 8px !important; font-size: 0; }
@media (max-width: 768px) {
  #scrollTop { bottom: 20px; left: 16px; right: auto; }
}
@media (max-width: 540px) {
  .footer-credentials { flex-direction: column !important; gap: 6px !important; }
  .footer-credentials .divider { display: none !important; }
  footer { padding-bottom: 80px; }
}

/* ── Responsive ── */
@media (max-width: 1100px) { .footer-container { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .nav-cinematic, .nav-cinematic.scrolled { padding: 16px 24px; }
  .toc-list { columns: 1; }
  .toc, .acknowledgement-box { padding: 28px 24px; }
}
@media (max-width: 640px) {
  .footer-container { grid-template-columns: 1fr; gap: 40px; }
  .footer-bottom .copyright { flex-direction: column; text-align: center; }
  .policy-actions { flex-direction: column; }
  .btn-action { justify-content: center; }
}

@media (max-width: 480px) {
  .newsletter-form .input-group {
    flex-direction: column;
    border: none;
    gap: 10px;
  }
  .newsletter-form input {
    border: 1px solid rgba(201,168,76,.24);
    border-radius: 6px;
    width: 100%;
    box-sizing: border-box;
  }
  .btn-subscribe {
    width: 100%;
    justify-content: center;
    padding: 12px 18px;
    border-radius: 6px;
  }
}
