:root {
  --forest: #173d2b;
  --forest-deep: #0c2b1d;
  --moss: #55733f;
  --fern: #8aa45d;
  --cream: #f6f0e3;
  --paper: #fffdf8;
  --ink: #173025;
  --muted: #607066;
  --gold: #c28a43;
  --line: rgba(23, 61, 43, 0.14);
  --shadow: 0 22px 70px rgba(12, 43, 29, 0.13);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}
body.nav-lock { overflow: hidden; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 99; padding: 12px 16px; background: white; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(255,255,255,.12);
  background: rgba(12,43,29,.91);
  color: white;
  backdrop-filter: blur(14px);
}
.nav { min-height: 74px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 800; letter-spacing: -.02em; }
.brand img { width: 42px; height: 42px; object-fit: contain; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-links a { color: rgba(255,255,255,.82); text-decoration: none; font-size: .94rem; }
.nav-links a:hover { color: white; }
.play-store-row { border-top: 1px solid rgba(255,255,255,.1); background: rgba(4,24,15,.28); }
.play-store-inner { display: flex; justify-content: flex-end; padding: 9px 0; }
.play-store-button { display: inline-flex; align-items: center; gap: 9px; padding: 5px 13px 5px 8px; border: 1px solid rgba(255,255,255,.24); border-radius: 10px; background: rgba(255,255,255,.08); color: white; text-decoration: none; transition: background-color .18s ease, transform .18s ease, border-color .18s ease; }
.play-store-button:hover, .play-store-button:focus-visible { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.5); color: white; transform: translateY(-1px); }
.play-store-icon { width: 27px; height: 27px; flex: 0 0 auto; }
.play-store-button span { display: flex; flex-direction: column; line-height: 1.05; text-align: left; }
.play-store-button small { font-size: .62rem; font-weight: 500; opacity: .78; }
.play-store-button strong { font-size: .92rem; font-weight: 800; letter-spacing: -.02em; }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 46px; height: 46px; border: 1px solid rgba(255,255,255,.18); border-radius: 14px; background: rgba(255,255,255,.06); color: white; }
.nav-toggle span { width: 18px; height: 2px; background: currentColor; position: relative; display: block; }
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: currentColor; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: var(--forest);
  color: white;
  font-weight: 750;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(12,43,29,.17);
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.button:hover, .button:focus-visible { transform: translateY(-1px); background: var(--forest-deep); color: white; }
.button.light { background: white; color: var(--forest); }
.button.light:hover, .button.light:focus-visible { background: #edf3e4; color: var(--forest-deep); }
.button.ghost { background: transparent; color: var(--forest); border-color: var(--line); box-shadow: none; }
.button.ghost:hover, .button.ghost:focus-visible { background: var(--forest); border-color: var(--forest); color: white !important; }
.button.light { background: white; color: var(--forest); }
.button.light:hover, .button.light:focus-visible { background: #edf3e4; color: var(--forest-deep); }
.button.light.small { color: var(--forest); }
.button.small { min-height: 42px; padding: 0 17px; font-size: .91rem; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 76% 20%, rgba(194,138,67,.22), transparent 30%),
    linear-gradient(135deg, var(--forest-deep), var(--forest));
  color: white;
}
.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 100px;
  background: linear-gradient(to top, rgba(0,0,0,.11), transparent);
  pointer-events: none;
}
.hero-grid { min-height: 700px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 52px; padding: 90px 0; }
.eyebrow { display: inline-flex; gap: 9px; align-items: center; margin-bottom: 18px; color: #d7e6c1; font-size: .88rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }
h1, h2, h3 { margin-top: 0; line-height: 1.08; font-family: Georgia, "Times New Roman", serif; }
h1 { max-width: 760px; margin-bottom: 24px; font-size: clamp(3.3rem, 7vw, 6.8rem); letter-spacing: -.055em; }
h2 { margin-bottom: 18px; font-size: clamp(2.2rem, 4.5vw, 4rem); letter-spacing: -.035em; }
h3 { margin-bottom: 10px; font-size: 1.35rem; }
.hero-copy { max-width: 650px; margin: 0 0 30px; color: rgba(255,255,255,.78); font-size: clamp(1.06rem, 1.5vw, 1.24rem); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.actions > .button { flex: 1 1 220px; }
.microcopy { margin-top: 17px; color: rgba(255,255,255,.59); font-size: .89rem; }
.hero-art { position: relative; min-height: 500px; display: grid; place-items: center; }
.hero-art::before { content: ""; position: absolute; width: 86%; aspect-ratio: 1; border-radius: 50%; background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.13); }
.hero-art img { position: relative; z-index: 2; max-height: 580px; filter: drop-shadow(0 28px 30px rgba(0,0,0,.25)); }
.environment-hero .hero-grid { min-height: 610px; }
.environment-art { min-height: 420px; }
.environment-orbit { position: relative; width: min(390px, 78vw); aspect-ratio: 1; border: 1px solid rgba(255,255,255,.24); border-radius: 50%; box-shadow: 0 0 0 34px rgba(255,255,255,.04), 0 0 0 70px rgba(255,255,255,.035); }
.environment-orbit::before, .environment-orbit::after { content: ""; position: absolute; inset: 16%; border: 1px dashed rgba(215,230,193,.35); border-radius: 50%; transform: rotate(34deg) scaleX(.62); }
.environment-orbit::after { transform: rotate(-34deg) scaleY(.62); }
.environment-orbit span { position: absolute; width: 13px; height: 13px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 7px rgba(194,138,67,.18); }
.environment-orbit span:nth-child(1) { top: 12%; left: 50%; }
.environment-orbit span:nth-child(2) { right: 15%; bottom: 24%; background: var(--fern); box-shadow: 0 0 0 7px rgba(138,164,93,.2); }
.environment-orbit span:nth-child(3) { left: 13%; bottom: 28%; background: #d8c57c; box-shadow: 0 0 0 7px rgba(216,197,124,.18); }
.environment-compass { position: absolute; z-index: 2; display: grid; place-items: center; width: 170px; height: 170px; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: rgba(12,43,29,.68); box-shadow: 0 18px 50px rgba(0,0,0,.25); text-align: center; }
.environment-compass strong { font-family: Georgia, serif; font-size: 1.55rem; letter-spacing: .08em; }
.environment-compass span { max-width: 105px; color: rgba(255,255,255,.67); font-size: .75rem; line-height: 1.3; }
.environment-paths { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.environment-path { position: relative; padding: 38px; border: 1px solid var(--line); border-radius: 28px; background: var(--cream); }
.featured-path { background: var(--forest); color: white; border-color: transparent; box-shadow: var(--shadow); }
.featured-path p, .featured-path .checklist { color: rgba(255,255,255,.73); }
.path-number { display: inline-flex; margin-bottom: 40px; color: var(--gold); font-size: .85rem; font-weight: 900; letter-spacing: .12em; }
.environment-path h3 { font-size: 2rem; }
.environment-path p { max-width: 500px; color: var(--muted); }
.environment-path .checklist { margin-top: 26px; }
.environment-reading { background: linear-gradient(180deg, #eef3e8, var(--cream)); }
.reading-list { display: grid; gap: 14px; margin-top: 30px; }
.reading-list div { display: grid; gap: 2px; padding: 15px 18px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.55); }
.reading-list span { color: var(--muted); font-size: .93rem; }
.environment-result { align-self: center; padding: 32px; border: 1px solid rgba(23,61,43,.16); border-radius: 32px; background: var(--paper); box-shadow: var(--shadow); transform: rotate(2deg); }
.result-top, .result-score, .result-labels { display: flex; justify-content: space-between; gap: 18px; }
.result-top { color: var(--muted); font-size: .86rem; }
.result-top b { color: var(--moss); }
.result-score { align-items: end; margin: 42px 0 22px; }
.result-score strong { font-family: Georgia, serif; font-size: 2rem; }
.result-score span { color: var(--muted); font-size: .82rem; }
.result-bars { display: grid; gap: 9px; }
.result-bars i { display: block; height: 9px; border-radius: 99px; background: linear-gradient(90deg, var(--moss), var(--fern)); }
.result-bars i:nth-child(2) { background: linear-gradient(90deg, var(--gold), #e2c47f); }
.result-bars i:nth-child(3) { background: linear-gradient(90deg, var(--forest), var(--moss)); }
.result-labels { margin-top: 8px; color: var(--muted); font-size: .72rem; }
.environment-result p { margin: 28px 0 0; color: var(--muted); font-size: .94rem; }
.environment-note { max-width: 780px; text-align: center; }
.environment-note .eyebrow { justify-content: center; }
.environment-note p { margin: 0 auto 28px; color: var(--muted); font-size: 1.08rem; }
.site-footer { padding: 35px 0; background: var(--forest-deep); color: rgba(255,255,255,.73); }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr auto; align-items: center; gap: 24px; }
.footer-grid .brand { color: white; }
.footer-grid p { margin: 0; font-size: .9rem; }
.footer-links { display: flex; gap: 18px; font-size: .88rem; }
.footer-links a { color: inherit; text-decoration: none; }

.section { padding: 100px 0; }
.section.white { background: var(--paper); }
.section-heading { max-width: 760px; margin-bottom: 42px; }
.section-heading p { margin: 0; color: var(--muted); font-size: 1.08rem; }
.news-band { overflow: hidden; background: linear-gradient(180deg, #eef3e8, var(--cream)); }
.news-heading { max-width: 820px; }
.news-feature {
  position: relative;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 58px;
  align-items: center;
  padding: 54px;
  border: 1px solid rgba(23,61,43,.16);
  border-radius: 38px;
  background: var(--paper);
  box-shadow: var(--shadow);
}
.news-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; color: var(--muted); font-size: .82rem; font-weight: 750; }
.news-badge { padding: 6px 11px; border-radius: 999px; background: var(--gold); color: white; font-size: .7rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.news-kicker { display: block; margin-bottom: 10px; color: var(--moss); font-size: .82rem; font-weight: 900; letter-spacing: .09em; text-transform: uppercase; }
.news-copy h3 { max-width: 650px; margin-bottom: 18px; font-size: clamp(2rem, 3.5vw, 3.35rem); }
.news-copy > p { margin: 0; color: var(--muted); font-size: 1.04rem; }
.news-points { display: grid; gap: 10px; margin: 24px 0 30px; padding: 0; list-style: none; }
.news-points li { position: relative; padding-left: 27px; color: #44574c; }
.news-points li::before { content: "✓"; position: absolute; left: 0; color: var(--moss); font-weight: 900; }
.news-cover { min-height: 390px; border-radius: 30px; background-color: #dfe8cd; background-position: center; background-size: cover; box-shadow: 18px 20px 0 #dfe7d2, 0 24px 50px rgba(12,43,29,.22); transform: rotate(1.5deg); transition: transform .45s ease, background-position .45s ease; }
.news-feature:hover .news-cover { transform: rotate(0deg) scale(1.015); background-position: 52% center; }
.news-strip { margin-top: 44px; }
.news-strip-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.news-strip-head h3 { margin: 0; font-size: 1.8rem; }
.news-strip-tools { display: flex; align-items: center; gap: 18px; }
.news-strip-controls { display: flex; gap: 8px; }
.news-arrow { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(23,61,43,.2); border-radius: 50%; background: var(--paper); color: var(--forest-deep); font-size: 1.25rem; cursor: pointer; box-shadow: 0 8px 20px rgba(12,43,29,.08); transition: transform .2s ease, background-color .2s ease, color .2s ease; }
.news-arrow:hover, .news-arrow:focus-visible { transform: translateY(-2px); background: var(--forest-deep); color: white; }
.text-link { color: var(--forest); font-weight: 800; }
.news-strip-list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 32%); gap: 16px; overflow-x: auto; padding: 4px 4px 18px; scroll-snap-type: x proximity; scrollbar-width: none; scroll-behavior: smooth; }
.news-strip-list::-webkit-scrollbar { display: none; }
.news-card { min-height: 230px; padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: white; box-shadow: 0 12px 30px rgba(12,43,29,.08); scroll-snap-align: start; }
.news-card-image { height: 132px; margin: -22px -22px 18px; border-radius: 22px 22px 0 0; background-color: #dfe8cd; background-position: center; background-size: cover; transition: transform .35s ease, filter .35s ease; }
.news-card:hover .news-card-image { transform: scale(1.035); filter: saturate(1.12); }
.news-card-body { position: relative; }
.news-card .news-meta { margin-bottom: 13px; }
.news-card .news-kicker { margin-bottom: 7px; font-size: .7rem; }
.news-card h3 { margin-bottom: 9px; font-size: 1.35rem; }
.news-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.news-archive-list { display: grid; gap: 16px; }
.news-archive-list .news-card { min-height: 0; }
.news-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 34px; }
.news-pagination span { color: var(--muted); font-weight: 800; }
.news-pagination button:disabled { opacity: .4; cursor: not-allowed; transform: none; }
.academy-preview { padding: 28px; border-radius: 30px; background: linear-gradient(145deg, var(--forest-deep), #285b3d); color: white; box-shadow: 0 24px 50px rgba(12,43,29,.25); transform: rotate(1.5deg); }
.academy-preview-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.academy-preview-top span { color: #d7e6c1; font-size: .72rem; font-weight: 900; letter-spacing: .15em; }
.academy-preview-top strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.academy-subjects { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.academy-subjects > div { display: grid; gap: 4px; min-height: 150px; align-content: end; padding: 20px; border: 1px solid rgba(255,255,255,.14); border-radius: 22px; background: rgba(255,255,255,.09); }
.academy-subjects span { font-size: 2rem; }
.academy-subjects strong { font-family: Georgia, "Times New Roman", serif; font-size: 1.35rem; }
.academy-subjects small { color: rgba(255,255,255,.68); }
.academy-exam { display: flex; justify-content: space-between; gap: 18px; margin-top: 14px; padding: 17px 18px; border-radius: 18px; background: #f3ead8; color: var(--forest-deep); }
.academy-exam span { font-size: .83rem; }
.academy-exam strong { font-size: .87rem; white-space: nowrap; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: white; box-shadow: var(--shadow); }
.card-icon { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: 22px; border-radius: 16px; background: #edf3e4; }
.card-icon img { width: 29px; height: 29px; object-fit: contain; }
.text-icon { color: var(--forest); font-family: Georgia, "Times New Roman", serif; font-size: 1.65rem; font-weight: 900; }
.qr-icon { font-family: inherit; font-size: 2rem; line-height: 1; }
.paw-icon svg { width: 31px; height: 31px; fill: var(--forest); }
.card p { margin: 0; color: var(--muted); }
.dog-card { grid-column: 1 / -1; }
.feature-title { display: flex; align-items: center; gap: 10px; }
.feature-title h3 { margin-bottom: 10px; }
.pro-pill { display: inline-flex; padding: 3px 9px; border-radius: 999px; background: var(--forest); color: white; font-size: .7rem; font-weight: 900; letter-spacing: .08em; }

.story-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.story-art { padding: 34px; border-radius: 36px; background: #e6edd8; }
.story-art img { width: 100%; max-height: 540px; object-fit: contain; }
.checklist { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.checklist li { position: relative; padding-left: 34px; color: var(--muted); }
.checklist li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; background: var(--forest); color: white; font-size: .76rem; font-weight: 900; }

.guide-band { background: var(--paper); }
.guide-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: center; }
.guide-copy p { max-width: 650px; margin: 0 0 28px; color: var(--muted); font-size: 1.08rem; }
.guide-card {
  min-height: 350px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 42px;
  border-radius: 16px 34px 34px 16px;
  background: linear-gradient(145deg, var(--forest-deep), var(--forest));
  color: white;
  box-shadow: 18px 22px 0 #dfe7d2, var(--shadow);
}
.guide-card img {
  width: 82px;
  height: 82px;
  margin: 0 0 auto;
  object-fit: contain;
  filter: none;
  border-radius: 50%;
  box-shadow: 0 8px 24px rgba(0,0,0,.2);
}
.guide-card span { color: #d7e6c1; font-size: .82rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.guide-card strong { margin-top: 5px; font-family: Georgia, "Times New Roman", serif; font-size: 2.6rem; line-height: 1; }
.guide-card small { max-width: 290px; margin-top: 16px; color: rgba(255,255,255,.7); font-size: .93rem; }

.comparison-band { background: #edf1e7; }
.comparison-heading { max-width: 860px; }
.plan-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 22px; }
.plan-card { padding: 28px; border: 1px solid var(--line); border-radius: 26px; background: rgba(255,255,255,.72); }
.plan-card.featured { background: var(--forest); color: white; box-shadow: var(--shadow); }
.plan-card h3 { margin: 8px 0 7px; font-size: 1.7rem; }
.plan-card p { margin: 0; color: var(--muted); }
.plan-card.featured p { color: rgba(255,255,255,.72); }
.plan-label { color: var(--moss); font-size: .78rem; font-weight: 900; letter-spacing: .12em; }
.plan-card.featured .plan-label { color: #d7e6c1; }
.comparison-table { overflow: hidden; border: 1px solid var(--line); border-radius: 26px; background: var(--paper); box-shadow: var(--shadow); }
.comparison-row { display: grid; grid-template-columns: minmax(220px, 1.35fr) minmax(130px, .7fr) minmax(190px, 1fr); align-items: center; min-height: 64px; border-bottom: 1px solid var(--line); }
.comparison-row:last-child { border-bottom: 0; }
.comparison-row > * { padding: 15px 20px; }
.comparison-row > * + * { border-left: 1px solid var(--line); }
.comparison-head { min-height: 54px; background: var(--forest-deep); color: white; font-size: .82rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.comparison-row strong { color: var(--ink); }
.comparison-row span { color: var(--muted); }
.comparison-row .pro-value { color: var(--forest); font-weight: 800; }
.comparison-row .no-value { color: #a2aaa4; }
.shared-row { background: #f5f8f0; }
.comparison-note { margin: 18px 0 0; color: var(--muted); font-size: .9rem; text-align: center; }

.privacy-band { background: #e8eddf; }
.privacy-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 58px; align-items: center; }
.privacy-points { display: grid; gap: 13px; }
.privacy-point { padding: 18px 20px; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.58); }
.privacy-point strong { display: block; margin-bottom: 3px; }
.privacy-point span { color: var(--muted); font-size: .94rem; }

.cta { padding: 90px 0; background: var(--forest-deep); color: white; text-align: center; }
.cta-inner { max-width: 800px; margin: 0 auto; }
.cta p { margin: 0 auto 28px; max-width: 640px; color: rgba(255,255,255,.72); }

.footer { padding: 44px 0; background: #081f15; color: rgba(255,255,255,.65); }
.footer-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 30px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer a { color: rgba(255,255,255,.8); text-decoration: none; }
.footer a:hover { color: white; }
.footer-social-link { display: inline-flex; align-items: center; gap: 7px; }
.social-icon { width: 18px; height: 18px; flex: 0 0 18px; display: block; }
.legal-note { max-width: 680px; font-size: .86rem; }
.section-links { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.section-links .button { width: 100%; }

body[data-page="academy"] .section-links .button {
  background: var(--forest-deep);
  color: white;
}

.legal-page .section-links .button,
.legal-page .section-links .button.light {
  background: var(--forest-deep);
  color: white;
}

.legal-page .section-links .button:hover,
.legal-page .section-links .button:focus-visible,
.legal-page .section-links .button.light:hover,
.legal-page .section-links .button.light:focus-visible {
  background: #285b3d;
  color: white;
}

body[data-page="academy"] .actions .button,
body[data-page="academy"] .actions .button.light {
  background: var(--forest-deep);
  color: white;
}

body[data-page="academy"] .actions .button:hover,
body[data-page="academy"] .actions .button:focus-visible,
body[data-page="academy"] .actions .button.light:hover,
body[data-page="academy"] .actions .button.light:focus-visible {
  background: #285b3d;
  color: white;
}

body[data-page="academy"] .section-links .button:hover,
body[data-page="academy"] .section-links .button:focus-visible {
  background: #285b3d;
  color: white;
}

.legal-page { min-height: 100vh; background: var(--paper); }
.legal-hero { padding: 72px 0 46px; background: #e8eddf; }
.legal-hero h1 { margin-bottom: 12px; color: var(--forest-deep); font-size: clamp(2.8rem, 6vw, 5rem); }
.legal-hero p { max-width: 720px; margin: 0; color: var(--muted); }
.legal-content { width: min(820px, calc(100% - 40px)); margin: 0 auto; padding: 64px 0 90px; }
.legal-content h2 { margin-top: 46px; font-size: 1.75rem; }
.legal-content h3 { margin-top: 30px; font-family: inherit; font-size: 1.08rem; }
.legal-content p, .legal-content li { color: #48594f; }
.legal-content a { color: var(--forest); font-weight: 700; }
.notice { padding: 18px 20px; border-left: 4px solid var(--gold); background: #fff7e9; }
.analytics-consent { position: fixed; z-index: 50; right: 18px; bottom: 18px; left: 18px; display: flex; align-items: center; justify-content: space-between; gap: 22px; max-width: 900px; margin: 0 auto; padding: 17px 19px; border: 1px solid rgba(23,61,43,.18); border-radius: 20px; background: rgba(255,253,248,.97); box-shadow: 0 18px 55px rgba(12,43,29,.2); color: var(--ink); }
.analytics-consent strong { display: block; margin-bottom: 4px; color: var(--forest-deep); }
.analytics-consent p { margin: 0; color: var(--muted); font-size: .86rem; line-height: 1.45; }
.analytics-consent-actions { display: flex; flex-shrink: 0; gap: 9px; }
.analytics-consent-actions .button { white-space: nowrap; }
@media (max-width: 620px) { .analytics-consent { align-items: stretch; flex-direction: column; gap: 13px; right: 12px; bottom: 12px; left: 12px; } .analytics-consent-actions { display: grid; grid-template-columns: 1fr 1fr; } }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  .nav-links { position: fixed; inset: 74px 16px auto 16px; display: grid; gap: 10px; padding: 16px; border: 1px solid rgba(23,61,43,.14); border-radius: 22px; background: rgba(255,253,248,.98); color: var(--ink); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .18s ease, transform .18s ease; }
  .nav-open .nav-links { opacity: 1; transform: translateY(0); pointer-events: auto; }
  .nav-links a { color: var(--ink); }
  .nav-links .button { width: 100%; }
  .play-store-inner { padding: 8px 20px; }
  .hero-grid, .story-grid, .guide-grid, .privacy-grid { grid-template-columns: 1fr; }
  .environment-paths { grid-template-columns: 1fr; }
  .hero-grid { padding: 70px 0 50px; gap: 20px; }
  .hero-art { min-height: 360px; }
  .hero-art img { max-height: 420px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .news-feature { grid-template-columns: 1fr; padding: 40px; }
  .guide-card { min-height: 310px; }
}
@media (max-width: 620px) {
  .wrap { width: min(100% - 28px, 1160px); }
  .nav-links { inset: 66px 14px auto 14px; }
  .nav { min-height: 66px; }
  .brand img { width: 36px; height: 36px; }
  .hero-grid { min-height: auto; }
  h1 { font-size: clamp(3rem, 17vw, 4.5rem); }
  .section { padding: 72px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .news-feature { gap: 36px; padding: 24px; border-radius: 26px; }
  .environment-path { padding: 26px; }
  .environment-result { transform: none; padding: 24px; }
  .environment-compass { width: 145px; height: 145px; }
  .news-cover { min-height: 250px; transform: none; box-shadow: 10px 12px 0 #dfe7d2, 0 18px 36px rgba(12,43,29,.18); }
  .news-strip-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .news-strip-tools { width: 100%; justify-content: space-between; }
  .news-strip-list { grid-auto-columns: minmax(250px, 86%); }
  .news-pagination { align-items: stretch; flex-wrap: wrap; justify-content: center; }
  .academy-preview { padding: 20px; transform: none; }
  .academy-subjects { grid-template-columns: 1fr; }
  .academy-subjects > div { min-height: 118px; }
  .academy-exam { flex-direction: column; gap: 3px; }
  .dog-card { grid-column: auto; }
  .plan-cards { grid-template-columns: 1fr; }
  .section-links { grid-template-columns: 1fr; }
  .comparison-table { overflow: visible; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
  .comparison-head { display: none; }
  .comparison-row { grid-template-columns: 1fr 1fr; gap: 0; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
  .comparison-row strong { grid-column: 1 / -1; padding-bottom: 8px; background: #f5f8f0; }
  .comparison-row span { position: relative; padding-top: 32px; font-size: .91rem; }
  .comparison-row span::before { position: absolute; top: 9px; left: 20px; color: var(--muted); font-size: .68rem; font-weight: 900; letter-spacing: .08em; }
  .comparison-row span:nth-child(2)::before { content: "FREE"; }
  .comparison-row span:nth-child(3)::before { content: "PRO"; color: var(--forest); }
  .comparison-row > * + * { border-left: 0; }
  .comparison-row span + span { border-left: 1px solid var(--line); }
  .card { padding: 23px; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
}
