﻿/* ===================================================
   ALICE DOTTA ATELIER – LEGAL PAGES SHARED STYLES
   =================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold: #c9b99a;
  --dark: #1a1a1a;
  --mid: #555;
  --light-bg: #faf9f7;
  --white: #fff;
  --border: rgba(0,0,0,0.08);
  --radius: 4px;
}

html { scroll-behavior: smooth; }

body {
  font-family: "Montserrat", sans-serif;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--dark);
  background: var(--white);
}

/* ===== TOP NAVBAR ===== */
.legal-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 0 8vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.legal-nav__logo img {
  height: 44px;
  width: auto;
  display: block;
}
.legal-nav__back {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--mid);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: color 0.2s;
}
.legal-nav__back:hover { color: var(--dark); }

/* ===== HERO BANNER ===== */
.legal-hero {
  background: #0d0d0d;
  color: var(--white);
  padding: 5rem 8vw 4rem;
  position: relative;
  overflow: hidden;
}
.legal-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(201,185,154,0.15) 0%, transparent 60%);
  pointer-events: none;
}
.legal-hero__label {
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.legal-hero__label::before {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  background: var(--gold);
}
.legal-hero h1 {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.legal-hero__meta {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.5);
  margin-top: 1.5rem;
}

/* ===== MAIN LAYOUT ===== */
.legal-wrapper {
  max-width: 860px;
  margin: 0 auto;
  padding: 5rem 2rem 7rem;
}

/* ===== TABLE OF CONTENTS ===== */
.legal-toc {
  background: var(--light-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.8rem 2rem;
  margin-bottom: 3.5rem;
}
.legal-toc h3 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--dark);
}
.legal-toc ol {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.legal-toc ol li a {
  font-size: 0.78rem;
  color: var(--mid);
  text-decoration: none;
  transition: color 0.2s;
}
.legal-toc ol li a:hover { color: var(--dark); }

/* ===== SECTIONS ===== */
.legal-section {
  margin-bottom: 3rem;
  scroll-margin-top: 90px;
}
.legal-section h2 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--dark);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}
.legal-section h2 .num {
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  font-weight: 600;
  text-transform: uppercase;
}
.legal-section h3 {
  font-family: "Montserrat", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--dark);
  margin: 1.5rem 0 0.6rem;
}
.legal-section p { color: #444; margin-bottom: 0.9rem; font-size: 0.85rem; line-height: 1.9; }
.legal-section ul, .legal-section ol { padding-left: 1.4rem; margin-bottom: 0.9rem; color: #444; font-size: 0.85rem; line-height: 1.9; }
.legal-section ul li, .legal-section ol li { margin-bottom: 0.3rem; }
.legal-section a { color: var(--dark); text-decoration: underline; text-underline-offset: 2px; transition: opacity 0.2s; }
.legal-section a:hover { opacity: 0.7; }

/* ===== INFO BOX ===== */
.legal-infobox {
  background: #f0ece5;
  border-radius: var(--radius);
  padding: 1.2rem 1.5rem;
  margin: 1.2rem 0;
  font-size: 0.82rem;
  color: #5a4e40;
  line-height: 1.75;
}
.legal-infobox strong { color: var(--dark); }

/* ===== CONTACT TABLE ===== */
.legal-contact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.82rem;
  margin: 1rem 0;
}
.legal-contact-table td {
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  vertical-align: top;
}
.legal-contact-table td:first-child {
  font-weight: 600;
  color: var(--dark);
  background: var(--light-bg);
  white-space: nowrap;
  width: 30%;
}

/* ===== COOKIE TABLE ===== */
.cookie-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
  margin: 1.2rem 0;
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.cookie-table thead th {
  background: #1a1a1a;
  color: var(--white);
  font-family: "Montserrat", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.7rem 0.9rem;
  text-align: left;
  font-weight: 500;
}
.cookie-table tbody tr { border-bottom: 1px solid var(--border); }
.cookie-table tbody tr:last-child { border-bottom: none; }
.cookie-table tbody td { padding: 0.65rem 0.9rem; color: #444; vertical-align: top; }
.cookie-table tbody tr:nth-child(even) td { background: var(--light-bg); }

/* ===== FOOTER ===== */
.legal-footer {
  background: #0d0d0d;
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 8vw;
  text-align: center;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  line-height: 1.8;
}
.legal-footer a { color: rgba(255,255,255,0.7); text-decoration: none; margin: 0 0.5rem; transition: color 0.2s; }
.legal-footer a:hover { color: #fff; }
.legal-footer__links { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.3rem 0; margin-bottom: 1rem; }
.legal-footer__links span { color: rgba(255,255,255,0.25); }

/* ===== RESPONSIVE ===== */
@media (max-width: 700px) {
  .legal-nav { padding: 0 5vw; }
  .legal-hero { padding: 4rem 5vw 3rem; }
  .legal-wrapper { padding: 3rem 5vw 5rem; }
  .legal-footer { padding: 2rem 5vw; }
  .legal-contact-table td:first-child { white-space: normal; }
}
