/* ============================================
   RESTORER — Legal Pages Shared Styles
   ============================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-soft: rgba(16,185,129,0.08);
  --accent-border: rgba(16,185,129,0.25);
  --text-primary: #18181b;
  --text-secondary: #52525b;
  --text-tertiary: #a1a1aa;
  --bg-primary: #fafafa;
  --bg-secondary: #f4f4f5;
  --bg-card: #ffffff;
  --border: #e4e4e7;
  --border-light: rgba(228,228,231,0.5);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06);
  --font: 'Outfit', sans-serif;
  --radius-md: 0.75rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.5rem;
  --radius-full: 9999px;
}

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font); color: var(--text-primary); background: var(--bg-primary); line-height: 1.7; }
a { color: var(--accent); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

/* ---- Header ---- */
.site-header {
  position: sticky; top: 0; width: 100%; z-index: 100;
  background: rgba(250,250,250,0.92);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-light);
  padding: 1rem 0;
}
.header-inner {
  max-width: 900px; margin: 0 auto; padding: 0 2rem;
  display: flex; align-items: center; justify-content: space-between;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  text-decoration: none; color: var(--text-primary);
  font-weight: 700; font-size: 1.15rem;
}
.logo:hover { text-decoration: none; color: var(--text-primary); }
.back-link {
  display: flex; align-items: center; gap: 0.35rem;
  font-size: 0.9rem; font-weight: 500; color: var(--text-secondary);
}
.back-link:hover { color: var(--accent); text-decoration: none; }

/* ---- Content ---- */
.content { max-width: 900px; margin: 0 auto; padding: 3rem 2rem 5rem; }

.doc-badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  background: var(--accent-soft); border: 1px solid var(--accent-border);
  color: var(--accent-hover); font-size: 0.78rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.3rem 0.85rem; border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
}
h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem); font-weight: 800;
  letter-spacing: -0.03em; line-height: 1.15; margin-bottom: 0.75rem;
}
.doc-meta {
  font-size: 0.88rem; color: var(--text-tertiary);
  margin-bottom: 2.5rem; padding-bottom: 2rem;
  border-bottom: 1px solid var(--border);
}

/* ---- PDF Card ---- */
.pdf-card {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-md); margin-bottom: 2rem;
}
.pdf-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-secondary); border-bottom: 1px solid var(--border);
  flex-wrap: wrap; gap: 0.75rem;
}
.pdf-toolbar-title {
  display: flex; align-items: center; gap: 0.6rem;
  font-weight: 600; font-size: 0.95rem; color: var(--text-primary);
}
.pdf-icon {
  width: 36px; height: 36px; border-radius: var(--radius-md);
  background: rgba(239,68,68,0.1);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.pdf-icon svg { width: 20px; height: 20px; color: #ef4444; }

.btn-download {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1.25rem;
  background: var(--accent); color: #fff;
  font-family: var(--font); font-weight: 600; font-size: 0.875rem;
  border-radius: var(--radius-full); border: none; cursor: pointer;
  text-decoration: none; transition: background 0.2s; white-space: nowrap;
}
.btn-download:hover { background: var(--accent-hover); text-decoration: none; color: #fff; }
.btn-download svg { width: 16px; height: 16px; }

.pdf-embed {
  width: 100%; height: 75vh; min-height: 500px;
  border: none; display: block; background: #525659;
}

/* ---- Info Grid ---- */
.info-section { margin-top: 2rem; }
.info-section h2 {
  font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary);
}
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-item {
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); padding: 1rem 1.25rem;
}
.info-label {
  font-size: 0.78rem; font-weight: 600; color: var(--text-tertiary);
  text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 0.25rem;
}
.info-value { font-size: 0.95rem; color: var(--text-primary); font-weight: 500; }

/* ---- Other docs ---- */
.other-docs { margin-top: 2.5rem; }
.other-docs h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem; color: var(--text-primary); }
.doc-links { display: flex; flex-direction: column; gap: 0.75rem; }
.doc-link-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-card); border: 1px solid var(--border-light);
  border-radius: var(--radius-md); text-decoration: none; color: var(--text-primary);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.doc-link-item:hover {
  border-color: var(--accent-border); box-shadow: var(--shadow-md);
  text-decoration: none; color: var(--text-primary);
}
.doc-link-item svg { width: 18px; height: 18px; color: var(--accent); flex-shrink: 0; }
.doc-link-item span { font-size: 0.92rem; font-weight: 500; }

/* ---- Footer ---- */
footer.doc-footer {
  background: var(--bg-secondary); border-top: 1px solid var(--border);
  padding: 1.5rem 2rem; text-align: center;
  font-size: 0.82rem; color: var(--text-tertiary);
}
footer.doc-footer a { color: var(--accent); }
footer.doc-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
  .content { padding: 2rem 1rem 4rem; }
  .info-grid { grid-template-columns: 1fr; }
  .pdf-embed { height: 60vh; }
  .header-inner { padding: 0 1rem; }
}
