/* ============================================================
   CLOUVI STUDIOS — pages.css
   Content pages: FAQ, Privacy & Terms
   Background: warm off-white #ece7de
   Texture: CSS grain + warm vignette
   Nav/Footer: remain dark — bookend frame
   ============================================================ */


/* ------------------------------------------------------------
   CONTENT WRAPPER — warm off-white base
   ------------------------------------------------------------ */
.content-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
  z-index: 2;
  background: transparent;
}

/* Fabric threads shown on all pages — canvas visible */
.content-wrapper #particles {
  opacity: 1;
}


/* ------------------------------------------------------------
   STICKY NAV — stays dark, gold bottom rule on white
   ------------------------------------------------------------ */
.content-wrapper header {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.2s forwards;
  position: sticky;
  top: 0;
  z-index: 500;
  background: #f5f4f0;
  border-bottom: 1px solid rgba(180,140,20,0.15);
}


/* ------------------------------------------------------------
   FOOTER — stays dark (bookends the white page)
   ------------------------------------------------------------ */
.content-wrapper footer {
  opacity: 0;
  animation: fadeIn 0.8s ease 0.3s forwards;
  border-top: 1px solid rgba(180,140,20,0.2);
  margin-top: auto;
  background: #f5f4f0;
  color: #3a3228;
}


/* ------------------------------------------------------------
   CONTENT MAIN
   ------------------------------------------------------------ */
.content-main {
  flex: 1;
  max-width: 700px;
  width: 100%;
  margin: 0 auto;
  padding: 56px 40px 96px;
  text-align: left;
  position: relative;
  z-index: 1;
  opacity: 0;
  animation: fadeIn 0.8s ease 0.6s forwards;
}


/* ------------------------------------------------------------
   PAGE HEADER
   ------------------------------------------------------------ */
.gold-line {
  width: 64px;
  height: 1px;
  background: linear-gradient(90deg, #9A7200, #C8960C, #B8960A);
  box-shadow: 0 0 6px rgba(180,140,20,0.35);
  margin-top: 20px;
}

/* Page load animation */
.page-header {
  margin-top: 12px;
  margin-bottom: 56px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(180,140,20,0.15);
  opacity: 0;
  animation: fadeIn 0.8s ease 0.4s forwards;
}

.page-headline {
  font-family: 'Cinzel', serif;
  font-size: clamp(24px, 4vw, 42px);
  font-weight: 400;
  letter-spacing: 6px;
  color: #0a0a0a;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.page-sub {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 2px;
  color: rgba(160,120,20,0.8);
  font-style: italic;
  margin-bottom: 12px;
}


/* ------------------------------------------------------------
   TL;DR STRIP
   ------------------------------------------------------------ */
.tldr-strip {
  background: rgba(180,140,20,0.05);
  border: 1px solid rgba(180,140,20,0.2);
  border-left: 3px solid #B8960A;
  padding: 24px 28px;
  margin-bottom: 48px;
}

.tldr-title {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 4px;
  color: #B8960A;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.tldr-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tldr-list li {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  line-height: 1.8;
  padding-left: 16px;
  position: relative;
}

.tldr-list li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #B8960A;
}

.tldr-list strong {
  color: #0a0a0a;
}


/* ------------------------------------------------------------
   SECTION DIVIDER
   ------------------------------------------------------------ */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(180,140,20,0.2);
}

.section-divider-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: #B8960A;
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
}


/* ------------------------------------------------------------
   PRIVACY SECTIONS — plain flowing text
   ------------------------------------------------------------ */
.privacy-section {
  margin-bottom: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(180,140,20,0.1);
}

.privacy-section:last-child {
  border-bottom: none;
}

.section-number {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: #B8960A;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.section-title {
  font-family: 'Cinzel', serif;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #0a0a0a;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-body {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  line-height: 2.1;
}

.section-body p {
  margin-bottom: 14px;
}

.section-body p:last-child {
  margin-bottom: 0;
}

.section-body ul {
  list-style: none;
  padding: 0;
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.section-body ul li {
  padding-left: 16px;
  position: relative;
  line-height: 1.9;
}

.section-body ul li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: #B8960A;
}

.section-body strong {
  color: #0a0a0a;
  font-weight: 700;
}

.section-body a {
  color: #B8960A;
  text-decoration: underline;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
  transition: color 0.25s ease;
}

.section-body a:hover { color: #9A7200; }


/* ------------------------------------------------------------
   FAQ SPECIFIC
   ------------------------------------------------------------ */
.faq-category {
  margin-bottom: 56px;
  width: 100%;
  box-sizing: border-box;
  padding: 0;
}

.faq-category-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 4px;
  color: #B8960A;
  text-transform: uppercase;
  margin: 0 0 6px 0;
  padding: 0;
  display: block;
  text-align: left;
  width: 100%;
  box-sizing: border-box;
}

.faq-category-title {
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 3px;
  color: #0a0a0a;
  text-transform: uppercase;
  margin: 0;
  padding: 0 0 16px 0;
  border-bottom: 1px solid rgba(180,140,20,0.15);
  display: block;
  text-align: left;
}

.faq-item {
  border-bottom: 1px solid rgba(180,140,20,0.1);
  padding: 0;
  margin: 0;
}

/* Button is a plain block — grid lives on inner row span */
.faq-q {
  width: 100%;
  background: transparent;
  border: none;
  color: #0a0a0a;
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 18px 0;
  margin: 0;
  cursor: pointer;
  display: block;
  text-align: left;
  transition: color 0.3s ease;
}

.faq-q:hover { color: #9A7200; }

/* Grid row inside button */
.faq-q-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
}

.faq-q-row > span:first-child {
  text-align: left;
  min-width: 0;
}

.faq-icon {
  font-size: 18px;
  font-weight: 300;
  color: #B8960A;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-q[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
}

.faq-a {
  display: none;
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #1a1a1a;
  line-height: 2;
  padding: 4px 0 20px;
  margin: 0;
  text-align: left;
}

.faq-a.open { display: block; }

.faq-a a {
  color: #B8960A;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.25s ease;
}

.faq-a a:hover { color: #9A7200; }


/* ------------------------------------------------------------
   CONTACT & SIZE MODALS (still dark — overlay on any bg)
   ------------------------------------------------------------ */
.contact-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

.contact-modal.open { display: flex; }

.contact-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,2,2,0.88);
  cursor: pointer;
}

.contact-modal-inner {
  position: relative;
  z-index: 1;
  background: #ece7de;
  border: 1px solid rgba(180,140,20,0.3);
  border-top: 2px solid rgba(180,140,20,0.8);
  padding: 40px 48px;
  min-width: 320px;
  max-width: 460px;
  width: 90vw;
  display: flex;
  flex-direction: column;
  gap: 20px;
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

.contact-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  color: rgba(10,10,10,0.4);
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  transition: color 0.25s ease;
  padding: 4px;
}

.contact-modal-close:hover { color: #0a0a0a; }

.contact-modal-title {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 5px;
  color: #D4AF37;
  text-transform: uppercase;
}

.contact-modal-line {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #C8960C, #FFE066, #D4AF37);
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
}

.contact-modal-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.contact-modal-label {
  font-family: 'Space Mono', monospace;
  font-size: 9px;
  letter-spacing: 3px;
  color: rgba(10,10,10,0.45);
  text-transform: uppercase;
}

.contact-modal-value {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 1px;
  color: #0a0a0a;
}

.contact-modal-value a {
  color: #D4AF37;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-modal-value a:hover { color: #FFE066; }

.contact-cta-link {
  color: #D4AF37;
  text-decoration: none;
  transition: color 0.25s ease;
}

.contact-cta-link:hover { color: #FFE066; }

.contact-modal-note {
  font-family: 'Space Mono', monospace;
  font-size: 10px;
  letter-spacing: 1px;
  color: rgba(10,10,10,0.45);
  font-style: italic;
  line-height: 1.8;
  border-top: 1px solid rgba(180,140,20,0.15);
  padding-top: 16px;
}

/* Size guide modal */
.size-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
}

.size-modal.open { display: flex; }

.size-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,2,2,0.85);
  cursor: pointer;
}

.size-modal-inner {
  position: relative;
  z-index: 1;
  background: #f5f4f0;
  border: 1px solid rgba(180,140,20,0.25);
  border-top: 2px solid rgba(180,140,20,0.8);
  width: min(480px, 90vw);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

.size-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: transparent;
  border: none;
  color: rgba(10,10,10,0.4);
  font-family: 'Space Mono', monospace;
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px;
  line-height: 1;
  z-index: 2;
}

.size-modal-close:hover { color: #0a0a0a; }

.size-modal-content {
  padding: 40px 32px 28px;
  overflow-y: auto;
  scrollbar-width: none;
}

.size-modal-content::-webkit-scrollbar { display: none; }

.size-modal-note {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(10,10,10,0.5);
  line-height: 1.8;
  margin-bottom: 20px;
}

.size-modal-cat {
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: #0a0a0a;
  text-transform: uppercase;
  margin: 20px 0 10px;
}

.size-modal-cat:first-of-type { margin-top: 0; }

.size-modal-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}

.size-modal-table th {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: normal;
  letter-spacing: 2px;
  color: rgba(10,10,10,0.4);
  text-transform: uppercase;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(180,140,20,0.2);
  text-align: left;
}

.size-modal-table td {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  font-weight: normal;
  color: #0a0a0a;
  padding: 10px;
  border-bottom: 1px solid rgba(180,140,20,0.08);
}

.size-modal-table tr:last-child td { border-bottom: none; }

.size-modal-how {
  font-family: 'Space Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.5px;
  color: rgba(10,10,10,0.55);
  line-height: 1.9;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(180,140,20,0.15);
}

.size-modal-how strong { color: #0a0a0a; }
.size-modal-how em { color: rgba(140,100,10,0.7); }




/* ------------------------------------------------------------
   FAQ CARD MODAL — dark card on white page
   ------------------------------------------------------------ */
.faq-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9998;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.faq-modal.open { display: flex; }

.faq-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(2,2,2,0.6);
  cursor: pointer;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.faq-modal-card {
  position: relative;
  z-index: 1;
  background: #0d0d0d;
  border: 1px solid rgba(180,140,20,0.3);
  border-top: 2px solid rgba(180,140,20,0.8);
  padding: 36px 40px;
  max-width: 520px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  animation: modalIn 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

.faq-modal-close {
  position: absolute;
  top: 16px;
  right: 20px;
  background: transparent;
  border: none;
  color: rgba(244,244,240,0.4);
  font-family: 'Space Mono', monospace;
  font-size: 14px;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px;
  min-width: 32px;
  min-height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.faq-modal-close:hover { color: #f4f4f0; }

.faq-modal-question {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 2px;
  color: #f4f4f0;
  text-transform: uppercase;
  margin-bottom: 20px;
  padding-right: 32px;
  line-height: 1.6;
}

.faq-modal-divider {
  width: 40px;
  height: 1px;
  background: linear-gradient(90deg, #C8960C, #FFE066, #D4AF37);
  box-shadow: 0 0 6px rgba(212,175,55,0.4);
  margin-bottom: 20px;
}

.faq-modal-answer {
  font-family: 'Space Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.5px;
  color: #C4BFB2;
  line-height: 2;
}

.faq-modal-answer a {
  color: #D4AF37;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .faq-modal-card {
    padding: 28px 24px;
    max-height: 85vh;
  }
  .faq-modal-question { font-size: 12px; }
  .faq-modal-answer { font-size: 11px; }
}

/* ------------------------------------------------------------
   MEDIA QUERIES — mobile
   ------------------------------------------------------------ */
@media (max-width: 768px) {

  .content-main {
    padding: 32px 36px max(80px, calc(64px + env(safe-area-inset-bottom)));
  }

  .page-headline {
    font-size: 26px;
    letter-spacing: 4px;
  }

  .tldr-strip { padding: 20px; }

  .faq-category { margin-bottom: 36px; }
  .faq-category-title { font-size: 14px; letter-spacing: 2px; }
  .faq-q { font-size: 10px; padding: 16px 0; }

  .privacy-q .section-title { font-size: 12px; letter-spacing: 1.5px; }
  .section-body { font-size: 11px; line-height: 2; }
  .section-title { font-size: 13px; }

}

/* Footer links on content pages */
.content-wrapper .footer-links a {
  color: rgba(60,40,10,0.6);
}
.content-wrapper .footer-links a:hover {
  color: #0a0a0a;
}
