/* Acadia legal pages: visual language mirrors src/App.css, without relying on the React bundle. */
:root {
  color-scheme: dark;
  --bg-main: #040814;
  --bg-secondary: #071b22;
  --card-bg: #0b1f2a;
  --teal: #00a6b2;
  --green: #63d85b;
  --white: #ffffff;
  --muted: #aeb9c2;
  --border: rgba(255, 255, 255, .12);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
  margin: 0;
  min-width: 320px;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(0, 166, 178, .25), transparent 30%),
    linear-gradient(135deg, #040814 0%, #071b22 50%, #02040a 100%);
}
a { color: var(--green); text-underline-offset: 3px; }
a:hover { color: #a5ee9e; }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; border-radius: 4px; }
button, input, select, textarea { font-family: inherit; }
.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header {
  position: sticky; top: 0; z-index: 100;
  display: grid; grid-template-columns: minmax(0, 1fr) auto;
  align-items: center; gap: 1.5rem;
  width: 100%; padding: 1rem 6%;
  background: rgba(4, 8, 20, .9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.logo-area { display: flex; align-items: center; gap: .9rem; color: var(--white); text-decoration: none; min-width: 0; }
.nav-logo { width: 58px; height: 58px; object-fit: contain; flex: 0 0 auto; }
.logo-name { display: block; font-size: 1.2rem; font-weight: 700; line-height: 1.25; }
.logo-subtitle { display: block; font-size: .8rem; color: var(--muted); margin-top: .2rem; }
.nav-links { display: flex; align-items: center; justify-content: flex-end; gap: 1.05rem; }
.nav-link { color: var(--muted); text-decoration: none; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.nav-link:hover { color: var(--white); }
.nav-button, .primary-button {
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; background: linear-gradient(135deg, var(--teal), var(--green));
  border-radius: 999px; text-decoration: none; font-weight: 700;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .45);
}
.nav-button { padding: .65rem 1rem; }
.primary-button { padding: .9rem 1.3rem; }
.nav-button:hover, .primary-button:hover { color: #fff; filter: brightness(1.07); }
.mobile-nav { display: none; }
.page-main { flex: 1; }
.page-hero {
  padding: 5.5rem 6% 4.75rem;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(circle at 15% 15%, rgba(0, 166, 178, .2), transparent 30%),
    radial-gradient(circle at 85% 10%, rgba(99, 216, 91, .12), transparent 28%),
    rgba(4, 8, 20, .75);
}
.hero-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.eyebrow { margin: 0; color: var(--green); font-size: .85rem; letter-spacing: 1.5px; font-weight: 700; text-transform: uppercase; }
.page-hero h1 { max-width: 900px; margin: .8rem auto 1rem; font-size: clamp(2.5rem, 5vw, 4.4rem); line-height: 1.08; }
.page-hero-copy { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 1.1rem; line-height: 1.7; }
.content-section { padding: 5rem 6%; }
.content-container { max-width: 1180px; margin: auto; }
.section-intro { max-width: 800px; margin-bottom: 2rem; }
.section-intro h2 { margin: .75rem 0 1rem; font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.16; }
.section-intro p:last-child { margin: 0; color: var(--muted); }
.policy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 1.4rem; }
.policy-card, .legal-note, .legal-contact, .policy-article {
  border: 1px solid var(--border); border-radius: 22px;
  background: rgba(11, 31, 42, .74); box-shadow: 0 18px 42px rgba(0, 0, 0, .22);
}
.policy-card { padding: 1.8rem; }
.policy-icon { width: 54px; height: 54px; display: grid; place-items: center; margin-bottom: 1.15rem;
  border: 1px solid rgba(99, 216, 91, .4); border-radius: 16px;
  background: rgba(0, 166, 178, .15); font-size: 1.5rem; color: var(--green); font-weight: 800; }
.policy-card h3 { margin: 0 0 .7rem; font-size: 1.4rem; }
.policy-card p, .legal-note p, .legal-contact p { color: var(--muted); line-height: 1.7; }
.policy-card p { margin: 0 0 1.35rem; }
.policy-card a { font-weight: 700; }
.legal-subsections { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem; margin-top: 2rem; }
.legal-note, .legal-contact { padding: 1.8rem; }
.legal-note h2, .legal-contact h2 { font-size: 1.4rem; margin: 0 0 .7rem; }
.legal-note p, .legal-contact p { margin: 0; }
.policy-content { max-width: 950px; margin: 0 auto; }
.policy-article { padding: clamp(1.5rem, 4.5vw, 3rem); }
.policy-meta { color: var(--muted); font-size: .95rem; margin: 0 0 1.4rem; }
.policy-summary { margin: 0 0 1.6rem; border-radius: 16px; border: 1px solid rgba(0, 166, 178, .4);
  border-left: 4px solid var(--green); background: rgba(0, 166, 178, .09); padding: 1.2rem 1.4rem; }
.policy-summary, .policy-summary strong { color: var(--white); }
.policy-section { padding: 1.55rem 0 0; margin-top: 1.55rem; border-top: 1px solid var(--border); }
.policy-section h2 { margin: 0 0 .85rem; font-size: clamp(1.2rem, 2.4vw, 1.5rem); line-height: 1.3; }
.policy-section p { color: var(--muted); margin: 0 0 .85rem; line-height: 1.75; overflow-wrap: anywhere; }
.policy-section p:last-child { margin-bottom: 0; }
.policy-section strong { color: var(--white); }
.policy-back { margin-top: 1.8rem; display: flex; gap: 1rem; flex-wrap: wrap; }
.site-footer { padding: 2rem 6%; border-top: 1px solid var(--border); background: rgba(2, 4, 10, .55); }
.footer-inner { max-width: 1180px; margin: 0 auto; display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; }
.footer-inner h2 { margin: 0 0 .4rem; font-size: 1.2rem; }
.footer-inner p { margin: 0; color: var(--muted); line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: .85rem; margin-top: .85rem; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: var(--green); }
.footer-links a { font-weight: 700; }
.footer-contact { text-align: right; }
.footer-bottom { max-width: 1180px; margin: 1.5rem auto 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .9rem; color: var(--muted); }
@media (max-width: 1100px) {
  .site-header { grid-template-columns: minmax(0, 1fr) auto; }
  .nav-links { display: none; }
  .mobile-nav { display: block; position: relative; }
  .mobile-nav summary { list-style: none; cursor: pointer; width: 46px; height: 42px; display: grid; place-items: center;
    border: 1px solid var(--border); border-radius: 10px; background: rgba(11, 31, 42, .75); font-size: 1.55rem; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-menu { position: absolute; top: calc(100% + 12px); right: 0; width: min(310px, 90vw); display: grid; gap: 0;
    padding: .6rem; border: 1px solid var(--border); border-radius: 16px; background: #0b1f2a;
    box-shadow: 0 20px 40px rgba(0,0,0,.45); }
  .mobile-menu a { padding: .7rem .9rem; color: var(--white); text-decoration: none; font-weight: 600; border-radius: 8px; }
  .mobile-menu a:hover { background: rgba(0, 166, 178, .18); }
  .mobile-menu a:last-child { background: linear-gradient(135deg, var(--teal), var(--green)); }
}
@media (max-width: 760px) {
  .page-hero { padding: 4.25rem 6% 3.75rem; }
  .content-section { padding: 3.5rem 6%; }
  .legal-subsections { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
  .footer-contact { text-align: left; }
}
@media (max-width: 460px) {
  .logo-name { font-size: 1.03rem; }
  .logo-subtitle { display: none; }
  .nav-logo { width: 48px; height: 48px; }
  .site-header { gap: .5rem; }
  .policy-card, .legal-note, .legal-contact { padding: 1.45rem; }
  .policy-article { padding: 1.3rem; }
}
@media print {
  :root { color-scheme: light; }
  body { background: #fff; color: #111; }
  .site-header, .site-footer, .policy-back { display: none; }
  .page-hero { background: #fff; padding: 1rem 0; border: 0; }
  .page-hero h1, .eyebrow, .policy-section h2 { color: #111; }
  .page-hero-copy, .policy-meta, .policy-section p { color: #333; }
  .content-section { padding: 0; }
  .policy-article { background: #fff; border: 0; box-shadow: none; padding: 0; }
  .policy-summary { background: #f4f4f4; border-color: #888; color: #111; }
  .policy-summary strong, .policy-section strong { color: #111; }
}

/* Consistent spacing on the policy hub and long-form legal pages. */
.policy-card { display: flex; flex-direction: column; }
.policy-card > a { margin-top: auto; }
.policy-card > p { margin-bottom: 1.4rem; }
.policy-back .primary-button { min-height: 44px; }
@media (max-width: 460px) {
  .policy-back { flex-direction: column; }
  .policy-back .primary-button { width: 100%; }
}
