:root {
  --ink: #173d2d;
  --cream: #fff8df;
  --cream-strong: #fff4cd;
  --gold: #ffcf55;
  --red: #ef6a4c;
  --green: #4d9b63;
  --muted: #4b6c5d;
  --line: #d9c58e;
  --shadow: #0d291e33;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #74b478;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: linear-gradient(#9ed8be 0 28%, #74b478 68%, #5f9f68 100%);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 14% 12%, #fff9 0 2px, transparent 3px),
    radial-gradient(circle at 86% 18%, #fff8 0 2px, transparent 3px);
  background-size:
    94px 94px,
    137px 137px;
}

.legal-hills {
  position: fixed;
  inset: auto 0 0;
  z-index: 0;
  height: 46%;
  pointer-events: none;
  opacity: 0.42;
  background:
    radial-gradient(ellipse at 10% 115%, #2d754f 0 48%, transparent 49%),
    radial-gradient(ellipse at 78% 125%, #397e53 0 48%, transparent 49%);
}

a {
  color: #205f47;
}

a:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.legal-shell {
  position: relative;
  z-index: 1;
  width: min(860px, 100%);
  margin: 0 auto;
  padding: max(18px, env(safe-area-inset-top))
    max(14px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(14px, env(safe-area-inset-left));
}

.legal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.mini-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 900;
  text-decoration: none;
}

.mini-stamp {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 3px solid #fff7d8;
  border-radius: 13px;
  background: var(--red);
  box-shadow: 0 4px 0 #a94432;
  color: #fff;
  font-size: 19px;
  transform: rotate(-4deg);
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #fff8df;
  border-radius: 999px;
  background: #fff8dfd9;
  box-shadow: 0 4px 12px #22583b24;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  padding: 10px 14px;
  text-decoration: none;
}

.legal-card {
  overflow: hidden;
  border: 3px solid #fff7d8;
  border-radius: 30px;
  background: #fff8dff2;
  box-shadow: 0 18px 48px var(--shadow);
}

.legal-hero {
  padding: clamp(26px, 6vw, 52px) clamp(22px, 7vw, 62px) 28px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 92% 12%, #ffcf5547 0 74px, transparent 75px),
    linear-gradient(135deg, #fff9e8 0%, #f9e8ad 100%);
}

.eyebrow {
  margin: 0 0 10px;
  color: #8b6432;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 700px;
  margin: 0;
  font-size: clamp(34px, 8vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.035em;
}

.legal-intro {
  max-width: 680px;
  margin: 18px 0 0;
  color: #3f6252;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.65;
}

.legal-meta {
  display: inline-flex;
  margin-top: 18px;
  border-radius: 999px;
  background: #173d2d12;
  color: #557164;
  font-size: 12px;
  font-weight: 750;
  padding: 7px 11px;
}

.legal-content {
  padding: 30px clamp(22px, 7vw, 62px) 42px;
}

.legal-summary {
  margin: 0 0 30px;
  border-left: 5px solid var(--green);
  border-radius: 0 16px 16px 0;
  background: #dfeecf;
  color: #2e513f;
  line-height: 1.65;
  padding: 16px 18px;
}

.legal-content section + section {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px dashed #c9b67f;
}

h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: clamp(19px, 4vw, 24px);
  line-height: 1.25;
}

p,
li {
  color: #476353;
  font-size: 15px;
  line-height: 1.72;
}

p {
  margin: 0;
}

p + p {
  margin-top: 12px;
}

ul {
  margin: 12px 0 0;
  padding-left: 22px;
}

li + li {
  margin-top: 8px;
}

strong {
  color: #244c39;
}

.email-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 22px 0 0;
  border: 2px solid #fff9e8;
  border-radius: 20px;
  background: #173d2d;
  box-shadow: 0 7px 0 #0e2c20;
  color: #fff8df;
  padding: 17px 18px;
  text-decoration: none;
}

.email-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: clamp(16px, 4vw, 20px);
  font-weight: 900;
}

.email-card b {
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--gold);
  color: var(--ink);
  font-size: 12px;
  padding: 9px 11px;
}

.safety-note {
  margin-top: 22px;
  border: 1px solid #df9f8d;
  border-radius: 18px;
  background: #ffe2d7;
  color: #743f32;
  line-height: 1.65;
  padding: 16px 18px;
}

.legal-footer {
  padding: 20px 14px 4px;
  text-align: center;
}

.legal-footer nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.legal-footer a {
  border-radius: 8px;
  color: #173d2d;
  font-size: 12px;
  font-weight: 850;
  padding: 5px;
  text-decoration: none;
}

.legal-footer a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: #ef6a4c;
  text-decoration-thickness: 3px;
  text-underline-offset: 5px;
}

.copyright {
  margin-top: 14px;
  color: #315e47;
  font-size: 11px;
  font-weight: 700;
}

@media (max-width: 560px) {
  .legal-topbar {
    align-items: flex-start;
  }

  .mini-brand span:last-child {
    display: none;
  }

  .legal-card {
    border-radius: 24px;
  }

  .legal-hero {
    padding: 28px 22px 23px;
  }

  .legal-content {
    padding: 24px 22px 32px;
  }

  .email-card {
    align-items: stretch;
    flex-direction: column;
  }

  .email-card b {
    align-self: flex-start;
  }
}

