/* ============================================================
   LEGAL.CSS — Device Resale
   Public-facing legal, contact pages
   ============================================================ */

html, body { height: 100%; }

body {
  background: var(--cream);
  min-height: 100%;
}

/* ── Public Nav ── */
.public-nav {
  height: 64px;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  padding: 0 40px;
  gap: 16px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.public-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.public-nav-brand-icon {
  width: 30px; height: 30px;
  border: 1.5px solid var(--gold);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.public-nav-brand-icon svg {
  width: 15px; height: 15px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.public-nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: var(--ink);
}

.public-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.public-nav-link {
  padding: 6px 14px;
  font-size: 0.8rem;
  color: var(--ink-soft);
  border-radius: var(--r-sm);
  transition: background 0.15s, color 0.15s;
  text-decoration: none;
}
.public-nav-link:hover { background: var(--cream); color: var(--ink); }
.public-nav-link.active { color: var(--gold); font-weight: 500; }

/* ── Page wrapper ── */
.legal-wrapper {
  max-width: 780px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.legal-header {
  margin-bottom: 48px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border);
}

.legal-category {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}

.legal-header h1 {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--ink);
  margin-bottom: 14px;
}

.legal-header p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.7;
  max-width: 560px;
}

.legal-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
  flex-wrap: wrap;
}
.legal-meta-item {
  font-size: 0.75rem;
  color: var(--ink-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.legal-meta-item svg {
  width: 13px; height: 13px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Legal Content ── */
.legal-body {
  font-size: 0.9rem;
  font-weight: 300;
  color: var(--ink-soft);
  line-height: 1.85;
}

.legal-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--ink);
  margin: 40px 0 14px;
  padding-top: 8px;
}
.legal-body h2:first-child { margin-top: 0; }

.legal-body h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  margin: 24px 0 10px;
  font-family: 'DM Sans', sans-serif;
}

.legal-body p {
  margin-bottom: 16px;
}

.legal-body ul, .legal-body ol {
  margin: 0 0 16px 20px;
}
.legal-body li {
  margin-bottom: 8px;
}

.legal-body a {
  color: var(--gold);
  font-weight: 400;
  border-bottom: 1px solid rgba(184,151,74,0.3);
  transition: border-color 0.15s;
}
.legal-body a:hover { border-color: var(--gold); }

.legal-body strong { font-weight: 600; color: var(--ink); }

.legal-highlight {
  background: var(--gold-bg);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: 14px 18px;
  margin: 24px 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.legal-divider {
  height: 1px;
  background: var(--border);
  margin: 40px 0;
}

/* Table of contents */
.legal-toc {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-bottom: 40px;
}
.legal-toc-title {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-muted);
  margin-bottom: 12px;
}
.legal-toc ol {
  margin: 0;
  padding-left: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 20px;
}
.legal-toc li {
  margin: 0;
  font-size: 0.8rem;
}
.legal-toc a {
  color: var(--ink-soft);
  border: none;
  transition: color 0.15s;
}
.legal-toc a:hover { color: var(--gold); }

/* ── Contact Page ── */
.contact-wrapper {
  max-width: 900px;
  margin: 0 auto;
  padding: 60px 24px 80px;
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.contact-header { margin-bottom: 32px; }
.contact-header h1 { font-size: 2rem; color: var(--ink); margin-bottom: 10px; }
.contact-header p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.7; }

.contact-form-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 32px;
}

.contact-info-card {
  background: var(--ink);
  border-radius: var(--r-xl);
  padding: 32px;
  position: sticky;
  top: 80px;
  overflow: hidden;
}
.contact-info-card::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 240px; height: 240px;
  background: radial-gradient(circle, rgba(184,151,74,0.12) 0%, transparent 65%);
  pointer-events: none;
}

.contact-info-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.contact-info-card > p {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 28px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

.contact-info-items { display: flex; flex-direction: column; gap: 18px; position: relative; z-index: 1; }
.contact-info-item { display: flex; align-items: flex-start; gap: 12px; }
.contact-info-item-icon {
  width: 34px; height: 34px;
  border-radius: var(--r-sm);
  background: rgba(184,151,74,0.12);
  border: 1px solid rgba(184,151,74,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-info-item-icon svg {
  width: 15px; height: 15px;
  stroke: var(--gold-lt);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-info-label {
  font-size: 0.68rem;
  font-weight: 500;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 3px;
}
.contact-info-val {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.8);
  line-height: 1.5;
}
.contact-info-val a { color: var(--gold-lt); }

.contact-hours {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.08);
  position: relative;
  z-index: 1;
}
.contact-hours p {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}
.contact-hours span {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.6;
}

.btn-send {
  width: 100%;
  height: 52px;
  background: var(--ink);
  color: var(--white);
  border: none;
  border-radius: var(--r-sm);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-send:hover { transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn-send svg {
  width: 16px; height: 16px;
  stroke: var(--white);
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Footer ── */
.public-footer {
  background: var(--ink);
  padding: 40px;
}
.public-footer-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.public-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.public-footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.7);
}
.public-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.public-footer-link {
  padding: 4px 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.35);
  border-radius: var(--r-sm);
  transition: color 0.15s, background 0.15s;
  text-decoration: none;
}
.public-footer-link:hover {
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.05);
}
.public-footer-copy {
  width: 100%;
  font-size: 0.7rem;
  color: rgba(255,255,255,0.2);
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: 8px;
}

/* ── Responsive ── */
@media (max-width: 700px) {
  .contact-layout { grid-template-columns: 1fr; }
  .contact-info-card { position: static; }
  .legal-toc ol { grid-template-columns: 1fr; }
  .public-nav { padding: 0 20px; }
  .legal-wrapper, .contact-wrapper { padding: 40px 20px 60px; }
}
