﻿/* ==========================================================================
   MIRA HAIR STUDIO — LEGAL PAGES STYLESHEET (Obsidian & Gold)
   Applies to: privacy.html, terms.html, cookie-policy.html
   Compliance: 152-FZ, 149-FZ, 38-FZ, GK RF Art. 437, RKN Orders 178/179/180
   ========================================================================== */

/* 1. LAYOUT & BACKGROUND */
.legal-page {
  background-color: var(--obsidian, #0f0c0a);
  color: var(--cream-primary, #faf7f2);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
}

.legal-page::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 600px;
  background: radial-gradient(circle at 50% -10%, rgba(201, 169, 110, 0.12), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.legal-container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
  position: relative;
  z-index: 1;
}

/* 2. HEADER & NAVIGATION */
.legal-nav-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 12, 10, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(201, 169, 110, 0.18);
  padding: 0.85rem 1.5rem;
  transition: all 0.3s ease;
}

.legal-nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.legal-brand-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--cream-primary, #faf7f2);
}

.legal-brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--gold-primary, #c9a96e);
  object-fit: cover;
}

.legal-brand-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--cream-primary, #faf7f2);
  line-height: 1.1;
}

.legal-brand-sub {
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.72rem;
  color: var(--gold-primary, #c9a96e);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: block;
}

.legal-nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.legal-btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.25s ease;
  min-height: 44px;
}

.legal-btn-ghost:hover {
  background: rgba(201, 169, 110, 0.12);
  border-color: var(--gold-primary, #c9a96e);
  color: var(--gold-light, #e6c88b);
  transform: translateY(-1px);
}

.legal-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-family: var(--font-body, 'Montserrat', sans-serif);
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f0c0a;
  background: linear-gradient(135deg, #f4e3c3 0%, #c9a96e 100%);
  border: 1px solid #f4e3c3;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(201, 169, 110, 0.22);
  transition: all 0.25s ease;
  min-height: 44px;
}

.legal-btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(201, 169, 110, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #e6c88b 100%);
}

/* 3. HERO & DOCUMENT META */
.legal-hero {
  margin-bottom: 2.5rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
}

.legal-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.95rem;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-light, #e6c88b);
  background: rgba(201, 169, 110, 0.1);
  border: 1px solid rgba(201, 169, 110, 0.3);
  border-radius: 9999px;
  margin-bottom: 1.25rem;
}

.legal-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: clamp(2rem, 4.5vw, 3rem);
  font-weight: 600;
  line-height: 1.15;
  color: var(--cream-primary, #faf7f2);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.legal-meta-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  font-size: 0.88rem;
  color: var(--cream-muted, rgba(250, 247, 242, 0.62));
  line-height: 1.5;
}

.legal-meta-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.legal-meta-item strong {
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
}

/* 4. TABLE OF CONTENTS (QUICK NAV) */
.legal-toc-card {
  background: rgba(22, 17, 13, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(201, 169, 110, 0.22);
  border-radius: 16px;
  padding: 1.5rem 1.75rem;
  margin-bottom: 3rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.legal-toc-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-primary, #c9a96e);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.legal-toc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 0.65rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.legal-toc-item a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.45;
  transition: all 0.2s ease;
  padding: 0.2rem 0;
}

.legal-toc-item a:hover {
  color: var(--gold-light, #e6c88b);
  transform: translateX(3px);
}

.legal-toc-num {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--gold-primary, #c9a96e);
  flex-shrink: 0;
}

/* 5. MAIN CONTENT CARD & SECTIONS */
.legal-content-card {
  background: rgba(22, 17, 13, 0.82);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(201, 169, 110, 0.25);
  border-radius: 20px;
  padding: 2.75rem 3rem;
  box-shadow: 0 15px 45px rgba(0, 0, 0, 0.45);
}

.legal-section {
  margin-bottom: 3.25rem;
  scroll-margin-top: 5.5rem;
}

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

.legal-section-header {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.2);
  padding-bottom: 0.85rem;
  margin-bottom: 1.5rem;
}

.legal-section-num {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 2rem;
  font-weight: 600;
  color: var(--gold-primary, #c9a96e);
  line-height: 1;
}

.legal-section-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--cream-primary, #faf7f2);
  line-height: 1.2;
}

.legal-subsection-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--gold-light, #e6c88b);
  margin: 1.5rem 0 0.75rem;
}

.legal-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
  margin-bottom: 1.15rem;
}

.legal-text strong {
  color: var(--cream-primary, #faf7f2);
  font-weight: 600;
}

.legal-list {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
  list-style-type: none;
}

.legal-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
}

.legal-list li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0.15rem;
  font-size: 0.65rem;
  color: var(--gold-primary, #c9a96e);
}

.legal-list-numbered {
  margin: 0 0 1.5rem 1.25rem;
  padding: 0;
  counter-reset: legal-counter;
  list-style-type: none;
}

.legal-list-numbered li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: 0.85rem;
  font-size: 0.94rem;
  line-height: 1.65;
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
  counter-increment: legal-counter;
}

.legal-list-numbered li::before {
  content: counter(legal-counter) '.';
  position: absolute;
  left: 0;
  top: 0;
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary, #c9a96e);
}

/* 6. TABLES & STRUCTURED GRIDS */
.legal-table-wrapper {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 1.75rem 0;
  border-radius: 12px;
  border: 1px solid rgba(201, 169, 110, 0.25);
  background: rgba(15, 12, 10, 0.6);
}

.legal-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.88rem;
  min-width: 650px;
}

.legal-table th {
  background: rgba(35, 27, 21, 0.85);
  color: var(--gold-light, #e6c88b);
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(201, 169, 110, 0.35);
}

.legal-table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
  line-height: 1.55;
  vertical-align: top;
}

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

.legal-table tr:hover td {
  background: rgba(201, 169, 110, 0.04);
}

.legal-table .badge-req {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(76, 217, 100, 0.15);
  color: #4cd964;
  border: 1px solid rgba(76, 217, 100, 0.3);
}

.legal-table .badge-opt {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  border-radius: 4px;
  background: rgba(245, 166, 35, 0.15);
  color: #f5a623;
  border: 1px solid rgba(245, 166, 35, 0.3);
}

/* 7. CALLOUT BOXES & HIGHLIGHTS */
.legal-callout {
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
  line-height: 1.65;
  position: relative;
}

.legal-callout-gold {
  background: rgba(201, 169, 110, 0.08);
  border-left: 4px solid var(--gold-primary, #c9a96e);
  color: var(--cream-primary, #faf7f2);
}

.legal-callout-info {
  background: rgba(60, 130, 246, 0.08);
  border-left: 4px solid #60a5fa;
  color: var(--cream-secondary, rgba(250, 247, 242, 0.86));
}

.legal-callout-warn {
  background: rgba(245, 166, 35, 0.09);
  border-left: 4px solid #f5a623;
  color: var(--cream-primary, #faf7f2);
}

.legal-callout-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--gold-light, #e6c88b);
  margin-bottom: 0.4rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

/* 8. REQUISITES CARD */
.legal-requisites-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

.legal-requisite-item {
  background: rgba(15, 12, 10, 0.6);
  border: 1px solid rgba(201, 169, 110, 0.18);
  border-radius: 10px;
  padding: 1rem 1.25rem;
}

.legal-requisite-label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-primary, #c9a96e);
  margin-bottom: 0.35rem;
}

.legal-requisite-val {
  font-size: 0.95rem;
  color: var(--cream-primary, #faf7f2);
  font-weight: 500;
  line-height: 1.4;
}

.legal-link {
  color: var(--gold-light, #e6c88b);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.legal-link:hover {
  color: #ffffff;
}

/* 9. BOTTOM CROSS-NAVIGATION FOOTER */
.legal-footer {
  margin-top: 4rem;
  border-top: 1px solid rgba(201, 169, 110, 0.2);
  padding: 3rem 1.5rem 2rem;
  background: rgba(15, 12, 10, 0.95);
  position: relative;
  z-index: 1;
}

.legal-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.legal-footer-nav-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-primary, #c9a96e);
  margin-bottom: 1.25rem;
  text-align: center;
}

.legal-docs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.legal-doc-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: rgba(26, 20, 16, 0.65);
  border: 1px solid rgba(201, 169, 110, 0.2);
  border-radius: 14px;
  padding: 1.4rem 1.5rem;
  text-decoration: none;
  color: var(--cream-primary, #faf7f2);
  transition: all 0.25s ease;
}

.legal-doc-card:hover {
  border-color: var(--gold-primary, #c9a96e);
  background: rgba(35, 27, 21, 0.85);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(201, 169, 110, 0.15);
}

.legal-doc-card.is-current {
  border-color: var(--gold-primary, #c9a96e);
  background: rgba(201, 169, 110, 0.12);
  pointer-events: none;
}

.legal-doc-card-badge {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold-primary, #c9a96e);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.legal-doc-card-title {
  font-family: var(--font-heading, 'Cormorant Garamond', serif);
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.legal-doc-card-desc {
  font-size: 0.82rem;
  color: var(--cream-muted, rgba(250, 247, 242, 0.62));
  line-height: 1.5;
  margin-bottom: 1rem;
}

.legal-doc-card-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gold-light, #e6c88b);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.legal-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-size: 0.82rem;
  color: var(--cream-muted, rgba(250, 247, 242, 0.62));
}

.legal-age-rating {
  display: inline-block;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(201, 169, 110, 0.4);
  border-radius: 4px;
  color: var(--gold-primary, #c9a96e);
  font-weight: 700;
  font-size: 0.75rem;
}

/* 10. RESPONSIVE ADAPTATIONS */
@media (max-width: 768px) {
  .legal-container {
    padding: 1.5rem 1rem 3.5rem;
  }
  .legal-content-card {
    padding: 1.75rem 1.25rem;
    border-radius: 14px;
  }
  .legal-nav-header {
    padding: 0.75rem 1rem;
  }
  .legal-brand-sub {
    display: none;
  }
  .legal-btn-ghost span.btn-text {
    display: none;
  }
  .legal-title {
    font-size: 1.75rem;
  }
  .legal-section-num {
    font-size: 1.6rem;
  }
  .legal-section-title {
    font-size: 1.35rem;
  }
  .legal-toc-grid {
    grid-template-columns: 1fr;
  }
}

/* 11. PRINT STYLES FOR OFFICIAL PRINTING & PDF EXPORT */
@media print {
  body, .legal-page {
    background: #ffffff !important;
    color: #111111 !important;
  }
  .legal-page::before,
  .legal-nav-header,
  .legal-nav-actions,
  .legal-toc-card,
  .legal-footer,
  .btn-header-booking,
  .grain {
    display: none !important;
  }
  .legal-container {
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
  }
  .legal-content-card {
    background: #ffffff !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    backdrop-filter: none !important;
  }
  .legal-title {
    color: #000000 !important;
    font-size: 20pt !important;
  }
  .legal-section-title,
  .legal-subsection-title {
    color: #000000 !important;
    page-break-after: avoid;
  }
  .legal-section-num {
    color: #333333 !important;
  }
  .legal-text,
  .legal-list li,
  .legal-list-numbered li {
    color: #222222 !important;
    font-size: 10pt !important;
    line-height: 1.4 !important;
  }
  .legal-table-wrapper {
    border: 1px solid #cccccc !important;
    background: #ffffff !important;
    page-break-inside: avoid;
  }
  .legal-table th {
    background: #eeeeee !important;
    color: #000000 !important;
    border-bottom: 1px solid #999999 !important;
  }
  .legal-table td {
    color: #222222 !important;
    border-bottom: 1px solid #dddddd !important;
  }
  .legal-callout {
    background: #f8f8f8 !important;
    border-left: 3pt solid #333333 !important;
    color: #111111 !important;
    page-break-inside: avoid;
  }
  .legal-callout-title {
    color: #000000 !important;
  }
  .legal-requisite-item {
    background: #f8f8f8 !important;
    border: 1px solid #cccccc !important;
  }
  .legal-requisite-label {
    color: #555555 !important;
  }
  .legal-requisite-val {
    color: #000000 !important;
  }
}
