/* ============================================================
   Auvion — Legal / inner pages shared styles
   ============================================================ */

.legal-page {
  padding: 96px 0 80px;
}
.legal-shell {
  max-width: 820px;
  margin: 0 auto;
  padding: 0 56px;
}
@media (max-width: 780px) {
  .legal-shell { padding: 0 24px; }
}

.legal-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
  margin-bottom: 28px;
}

.legal-title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(48px, 6.4vw, 88px);
  line-height: 1.02;
  letter-spacing: -0.028em;
  color: var(--fg-1);
  margin: 0;
  text-wrap: balance;
}
.legal-title em {
  font-style: italic;
  font-weight: 400;
  color: var(--emerald-800);
}

.legal-updated {
  margin-top: 24px;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--fg-3);
}

/* Bone-glass document card */
.legal-doc {
  margin-top: 56px;
  padding: 56px clamp(28px, 5vw, 64px) 64px;
  background: var(--glass-bone-hi);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(10, 10, 11, 0.03),
    0 22px 60px -36px rgba(10, 10, 11, 0.14);
  font-family: var(--font-body);
  color: var(--fg-2);
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.003em;
}

.legal-doc h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 28px;
  letter-spacing: -0.018em;
  color: var(--fg-1);
  margin: 56px 0 18px;
  line-height: 1.18;
  text-wrap: balance;
}
.legal-doc h2:first-child { margin-top: 0; }

.legal-doc h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-style: italic;
  font-size: 20px;
  letter-spacing: -0.012em;
  color: var(--fg-1);
  margin: 36px 0 14px;
  line-height: 1.2;
}

.legal-doc p {
  margin: 0 0 16px;
  text-wrap: pretty;
}

.legal-doc strong {
  color: var(--fg-1);
  font-weight: 600;
}

.legal-doc a {
  color: var(--emerald-700);
  text-decoration: none;
  border-bottom: 1px solid var(--border-emerald);
  transition: color 180ms var(--ease-out), border-color 180ms var(--ease-out);
}
.legal-doc a:hover {
  color: var(--emerald-800);
  border-bottom-color: var(--emerald-700);
}

.legal-doc ul {
  list-style: none;
  padding: 0;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.legal-doc ul li {
  position: relative;
  padding-left: 22px;
}
.legal-doc ul li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 12px;
  width: 6px;
  height: 1px;
  background: var(--fg-4);
}

.legal-doc dl {
  margin: 0 0 16px;
}
.legal-doc dl div {
  padding: 12px 0;
  border-bottom: 1px solid var(--border-subtle);
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 20px;
}
.legal-doc dl div:last-child { border-bottom: none; }
.legal-doc dt {
  color: var(--fg-1);
  font-weight: 600;
  font-size: 14px;
}
.legal-doc dd {
  margin: 0;
  color: var(--fg-2);
  font-size: 14px;
  line-height: 1.55;
}
@media (max-width: 600px) {
  .legal-doc dl div { grid-template-columns: 1fr; gap: 4px; }
}

.legal-doc .lead {
  font-family: var(--font-display);
  font-weight: 300;
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  letter-spacing: -0.012em;
  color: var(--fg-1);
  margin: 0 0 40px;
  text-wrap: pretty;
}

.legal-doc .rule {
  border: none;
  border-top: 1px solid var(--border-subtle);
  margin: 48px 0;
}

.legal-doc .signoff {
  margin-top: 56px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--fg-3);
  text-align: center;
}

/* Back link */
.legal-back {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 500;
  color: var(--fg-3);
  text-decoration: none;
  letter-spacing: -0.005em;
  transition: color 180ms var(--ease-out);
  margin-bottom: 28px;
}
.legal-back:hover { color: var(--fg-1); }
.legal-back svg { width: 14px; height: 14px; }

/* ============================================================
   HELP DROPDOWN — bone glass card under "Help"
   ============================================================ */

.has-menu {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.has-menu > .nav-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}
.has-menu > .nav-link .chev {
  width: 10px;
  height: 10px;
  transition: transform 220ms var(--ease-out);
}
.has-menu:hover > .nav-link .chev,
.has-menu:focus-within > .nav-link .chev {
  transform: rotate(180deg);
}

.menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  min-width: 220px;
  padding: 8px;
  background: var(--glass-bone-hi);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(10, 10, 11, 0.04),
    0 22px 50px -22px rgba(10, 10, 11, 0.18);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition:
    opacity 180ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0s linear 180ms;
  z-index: 60;
}
.has-menu:hover .menu,
.has-menu:focus-within .menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity 180ms var(--ease-out),
    transform 220ms var(--ease-out),
    visibility 0s;
}
.menu::before {
  /* invisible bridge so cursor can travel from link to menu without losing :hover */
  content: "";
  position: absolute;
  top: -14px;
  left: 0; right: 0;
  height: 14px;
}
.menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: var(--fg-1);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: background 160ms var(--ease-out);
}
.menu a:hover {
  background: var(--emerald-50);
  color: var(--emerald-800);
}
.menu a svg {
  width: 14px;
  height: 14px;
  color: var(--fg-3);
  flex: 0 0 14px;
}
.menu a:hover svg { color: var(--emerald-700); }
.menu .menu-meta {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  color: var(--fg-3);
  letter-spacing: 0;
  margin-top: 2px;
}

/* ============================================================
   CONTACT PAGE
   ============================================================ */
.contact-card {
  margin-top: 56px;
  padding: 64px clamp(28px, 5vw, 72px);
  background: var(--glass-bone-hi);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: 22px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 60px -36px rgba(10, 10, 11, 0.14);
  text-align: center;
}
.contact-card .label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg-3);
}
.contact-card .email {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.022em;
  color: var(--emerald-700);
  text-decoration: none;
  transition: color 180ms var(--ease-out);
}
.contact-card .email:hover { color: var(--emerald-800); }
.contact-card .em-line {
  margin: 40px auto 0;
  max-width: 460px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--fg-3);
  text-wrap: pretty;
}
.contact-card .em-line em {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--fg-2);
}

.contact-grid {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.contact-grid .cg {
  padding: 22px 20px;
  background: var(--glass-bone-hi);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(10, 10, 11, 0.03);
}
.contact-grid .cg h4 {
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--fg-3);
  margin: 0 0 12px;
}
.contact-grid .cg p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-2);
  margin: 0;
  text-wrap: pretty;
}
.contact-grid .cg .who {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 17px;
  color: var(--fg-1);
  margin-bottom: 4px;
  letter-spacing: -0.012em;
}
@media (max-width: 780px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HELP ARTICLES INDEX
   ============================================================ */
.help-search {
  margin-top: 40px;
  position: relative;
}
.help-search input {
  width: 100%;
  padding: 18px 22px 18px 50px;
  border-radius: 999px;
  border: 1px solid var(--border-default);
  background: var(--glass-bone-hi);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 1px 1px rgba(10, 10, 11, 0.03);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--fg-1);
  outline: none;
  transition: border-color 180ms var(--ease-out), box-shadow 180ms var(--ease-out);
}
.help-search input::placeholder { color: var(--fg-4); }
.help-search input:focus {
  border-color: var(--border-emerald);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 0 0 4px rgba(31, 77, 59, 0.10);
}
.help-search .search-ic {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--fg-3);
  pointer-events: none;
}

.help-categories {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
@media (max-width: 780px) {
  .help-categories { grid-template-columns: 1fr; }
}
.help-cat {
  padding: 28px 28px 24px;
  background:
    linear-gradient(180deg, rgba(248, 245, 238, 0.92), rgba(244, 241, 236, 0.88));
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  border: 1px solid var(--border-default);
  border-radius: 18px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 1px rgba(10, 10, 11, 0.03),
    0 14px 32px -22px rgba(10, 10, 11, 0.10);
  text-decoration: none;
  color: inherit;
  display: block;
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out);
}
.help-cat:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 1px 1px rgba(10, 10, 11, 0.03),
    0 22px 44px -22px rgba(10, 10, 11, 0.16);
}
.help-cat .cat-eyebrow {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  color: var(--emerald-700);
}
.help-cat h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
  letter-spacing: -0.012em;
  color: var(--fg-1);
  margin: 8px 0 12px;
  line-height: 1.15;
}
.help-cat p {
  font-size: 13px;
  line-height: 1.55;
  color: var(--fg-3);
  margin: 0 0 16px;
  text-wrap: pretty;
}
.help-cat .cat-meta {
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.005em;
  color: var(--fg-3);
}
.help-cat .arr {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-3);
  transition: transform 220ms var(--ease-out), color 220ms var(--ease-out);
}
.help-cat .arr svg { width: 16px; height: 16px; }
.help-cat:hover .arr {
  transform: translateX(2px);
  color: var(--emerald-700);
}
