/* ==========================================================================
   PhotoZone Graphy — Legal Hub Page
   Uses the exact same design tokens as legal-pages.css (terms, privacy,
   refund, AI policy) so this index page is visually consistent with the
   documents it links to: system fonts, white/gray canvas, thin borders,
   green accent. No brand fonts, no cream/cobalt theme.
   ========================================================================== */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --canvas: #ffffff;
  --canvas-2: #f6f8fa;
  --canvas-3: #eef0f2;

  --ink: #1b1f24;
  --ink2: #4a5058;
  --ink3: #6e7681;
  --ink4: #8b939d;

  --border: #d8dee4;
  --border-soft: #e6e9ec;

  --accent: #0b6e5c;
  --accent-ink: #084d40;
  --accent-tint: #0b6e5c0f;
  --accent-tint-strong: #0b6e5c1f;
  --accent-ring: #0b6e5c40;

  --amber: #9a6a1f;
  --amber-tint: #9a6a1f12;
  --amber-border: #9a6a1f33;

  --red: #b3392c;
  --red-tint: #b3392c10;

  --green: #1f7a52;
  --green-tint: #1f7a5210;
  --green-border: #1f7a5230;

  --blue: #1a5fb4;
  --blue-tint: #1a5fb410;

  --violet: #5b4b8a;
  --violet-tint: #5b4b8a10;
  --violet-border: #5b4b8a30;

  --shadow-sm: 0 1px 2px rgba(27, 31, 36, 0.06);
  --shadow-md: 0 1px 3px rgba(27, 31, 36, 0.08), 0 1px 2px rgba(27, 31, 36, 0.05);

  --edge: clamp(16px, 3vw, 48px);
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 10px;

  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";

  /* External fixed navbar height (see navbar.js: --pz-h) plus breathing room */
  --pz-navbar-h: 64px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--canvas);
  color: var(--ink2);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}
::selection { background: var(--accent-tint-strong); color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--edge); }

/* ==========================================================================
   REVEAL-ON-SCROLL (progressive enhancement, see legal_page.js)
   ========================================================================== */
[data-reveal] {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}

/* ==========================================================================
   HERO
   ========================================================================== */
.legal-hero {
  padding: calc(var(--pz-navbar-h) + 40px) var(--edge) 32px;
  text-align: center;
  border-bottom: 1px solid var(--border-soft);
  background: var(--canvas-2);
}

.legal-hero .wrap {
  max-width: 720px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  background: var(--canvas);
  border: 1px solid var(--border);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink2);
  margin-bottom: 18px;
}

.hero-eyebrow i { font-size: 11px; color: var(--accent); }

.legal-hero h1 {
  font-weight: 600;
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.15;
  color: var(--ink);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}

.legal-hero h1 em {
  font-style: normal;
  color: var(--ink);
}

.hero-subtitle {
  color: var(--ink3);
  font-size: 15px;
  line-height: 1.6;
  max-width: 540px;
  margin: 0 auto;
}

/* ==========================================================================
   TRUST STRIP
   ========================================================================== */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 26px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-soft);
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink3);
}

.trust-item i {
  color: var(--ink4);
  font-size: 12px;
}

/* ==========================================================================
   DOCUMENT GRID
   ========================================================================== */
.docs-section {
  padding: 32px var(--edge) 96px;
}

.docs-wrap {
  max-width: 1200px;
  margin: 0 auto;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.doc-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 22px 24px;
  background: var(--canvas);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  box-shadow: none;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.doc-card:hover {
  border-color: var(--border);
  background: var(--canvas-2);
  text-decoration: none;
}

.doc-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.doc-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  background: var(--canvas-2);
  border: 1px solid var(--border-soft);
  color: var(--ink3);
}

.doc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: var(--radius-sm);
  background: var(--green-tint);
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid var(--green-border);
  white-space: nowrap;
}

.doc-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.doc-status.draft {
  background: var(--amber-tint);
  color: var(--amber);
  border-color: var(--amber-border);
}
.doc-status.draft .doc-status-dot { background: var(--amber); }

.doc-title {
  font-weight: 600;
  font-size: 17px;
  color: var(--ink);
  letter-spacing: -0.003em;
}

.doc-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink3);
  flex: 1;
}

.doc-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-soft);
  margin-top: auto;
}

.doc-updated {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink4);
  display: flex;
  align-items: center;
  gap: 6px;
}

.doc-updated i { font-size: 11px; }

.doc-read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

.doc-read i {
  font-size: 11px;
  transition: transform 0.15s ease;
}

.doc-card:hover .doc-read i {
  transform: translateX(3px);
}

/* Icon accent variants — subtle tint, still neutral/plain like the other pages */
.doc-card.accent-cobalt .doc-icon { color: var(--blue); }
.doc-card.accent-green .doc-icon  { color: var(--green); }
.doc-card.accent-amber .doc-icon  { color: var(--amber); }
.doc-card.accent-violet .doc-icon { color: var(--violet); }

/* ==========================================================================
   HELP / CONTACT BAND
   ========================================================================== */
.help-band {
  margin-top: 24px;
  padding: 22px 24px;
  background: var(--canvas-2);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.help-band-text h3 {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--ink);
}

.help-band-text p {
  font-size: 13px;
  color: var(--ink3);
  line-height: 1.55;
  max-width: 460px;
}

.help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: var(--accent);
  color: #fff;
  border: 1px solid var(--accent);
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-weight: 600;
  font-size: 13.5px;
  white-space: nowrap;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.help-btn:hover {
  background: var(--accent-ink);
  border-color: var(--accent-ink);
  color: #fff;
  text-decoration: none;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 860px) {
  .docs-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  :root { --edge: 16px; }
  .legal-hero { padding: calc(var(--pz-navbar-h) + 24px) 16px 26px; }
  .hero-subtitle { font-size: 14px; }
  .trust-strip { gap: 6px 16px; }
  .docs-section { padding: 24px 16px 64px; }
  .doc-card { padding: 18px 16px; }
  .doc-icon { width: 34px; height: 34px; font-size: 14px; }
  .doc-title { font-size: 16px; }
  .help-band { flex-direction: column; align-items: flex-start; padding: 18px 16px; }
  .help-btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
