/* Adapted from the supplied terms design. */
body.legal-page { margin: 0; padding-top: 88px; }
#terms-page { line-height: 1.5; }
#terms-page {
  --ink: #142740;
  --ink-soft: #60708a;
  --paper: #fbf8fa;
  --white: #ffffff;
  --plum: #59175d;
  --plum-deep: #32153f;
  --violet: #76216f;
  --rose: #c43b83;
  --rose-soft: #f5dce9;
  --pink: #f2b6d6;
  --line: #eadde6;
  --shadow: 0 22px 60px rgba(74, 29, 68, 0.09);
}
#terms-page * { box-sizing: border-box; }
#terms-page { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, Helvetica, sans-serif; }
#terms-page a { color: inherit; text-decoration: none; }
#terms-page button, #terms-page input, #terms-page textarea, #terms-page select { font: inherit; }
#terms-page .legal-hero { position: relative; overflow: hidden; background: linear-gradient(125deg, #4c1859 0%, #72216f 54%, #a9317d 100%); color: white; }
#terms-page .hero-inner { position: relative; z-index: 2; width: min(1360px, calc(100% - 80px)); min-height: 650px; margin: auto; padding: 92px 0 86px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(400px, .75fr); align-items: center; gap: 100px; }
#terms-page .hero-copy h1 { margin: 34px 0 28px; font-size: clamp(68px, 7.3vw, 118px); line-height: .88; letter-spacing: -.072em; font-weight: 500; }
#terms-page .hero-copy h1 em { font-family: Georgia, 'Times New Roman', serif; color: var(--pink); font-weight: 400; }
#terms-page .eyebrow { display: flex; align-items: center; gap: 14px; margin: 0; color: #f1bfdc; font-size: 14px; font-weight: 850; letter-spacing: .17em; text-transform: uppercase; }
#terms-page .eyebrow span { display: inline-block; width: 36px; height: 2px; background: currentColor; }
#terms-page .hero-intro { max-width: 610px; margin: 0; color: rgba(255,255,255,.78); font-size: 20px; line-height: 1.65; }
#terms-page .hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
#terms-page .orbit-one { width: 610px; height: 610px; right: -160px; top: -190px; }
#terms-page .orbit-two { width: 400px; height: 400px; right: 80px; bottom: -280px; }
#terms-page .hero-summary { padding: 34px; border: 1px solid rgba(255,255,255,.22); border-radius: 32px; background: rgba(47,15,58,.42); box-shadow: 0 30px 80px rgba(34,9,42,.24); backdrop-filter: blur(8px); }
#terms-page .summary-label { margin: 0 0 18px; color: #f0beda; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
#terms-page .hero-summary ul { margin: 0; padding: 0; list-style: none; }
#terms-page .hero-summary li { display: grid; grid-template-columns: 52px 1fr; align-items: center; gap: 17px; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); }
#terms-page .hero-summary li span { display: grid; place-items: center; width: 47px; height: 47px; border-radius: 15px; color: white; background: rgba(217,79,149,.65); font-size: 12px; font-weight: 900; }
#terms-page .hero-summary li p { margin: 0; color: rgba(255,255,255,.86); font-size: 15px; line-height: 1.5; }
#terms-page .legal-layout { width: min(1360px, calc(100% - 80px)); margin: 0 auto; padding: 110px 0 120px; display: grid; grid-template-columns: 300px minmax(0, 1fr); align-items: start; gap: 44px; }
#terms-page .contents-card { position: sticky; top: 120px; padding: 30px 28px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
#terms-page .contents-kicker { margin: 0 0 12px; color: var(--rose); font-size: 11px; font-weight: 900; letter-spacing: .17em; text-transform: uppercase; }
#terms-page .contents-card h2 { margin: 0 0 22px; font-size: 29px; letter-spacing: -.04em; }
#terms-page .contents-card nav { display: grid; }
#terms-page .contents-card nav a { display: grid; grid-template-columns: 30px 1fr; align-items: center; gap: 9px; padding: 10px 0; border-top: 1px solid #f1e7ed; color: #53637c; font-size: 13px; line-height: 1.35; font-weight: 700; }
#terms-page .contents-card nav a:hover { color: var(--rose); }
#terms-page .contents-card nav a span { color: #aa9aa8; font-size: 10px; font-weight: 900; }
#terms-page .terms-content { display: grid; gap: 24px; }
#terms-page .terms-card { scroll-margin-top: 110px; padding: clamp(32px, 4vw, 58px); border: 1px solid var(--line); border-radius: 34px; background: white; box-shadow: 0 16px 52px rgba(67,35,64,.055); }
#terms-page .section-heading { display: grid; grid-template-columns: 58px 1fr; align-items: center; gap: 20px; margin-bottom: 34px; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
#terms-page .section-number { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 17px; color: var(--plum); background: var(--rose-soft); font-size: 12px; font-weight: 900; letter-spacing: .05em; }
#terms-page .section-heading h2 { margin: 0; max-width: 800px; font-size: clamp(28px, 3.1vw, 47px); line-height: 1.05; letter-spacing: -.045em; }
#terms-page .legal-copy { padding-left: 78px; color: #53637b; font-size: 16px; line-height: 1.75; }
#terms-page .legal-copy > p { margin: 0 0 19px; }
#terms-page .legal-copy strong { color: var(--ink); }
#terms-page .clauses { margin: 0; padding: 0; list-style: none; counter-reset: clauses var(--start, 0); }
#terms-page .clauses[start="4"] { --start: 3; }
#terms-page .clauses[start="5"] { --start: 4; }
#terms-page .clauses[start="9"] { --start: 8; }
#terms-page .clauses[start="11"] { --start: 10; }
#terms-page .clauses[start="14"] { --start: 13; }
#terms-page .clauses[start="15"] { --start: 14; }
#terms-page .clauses[start="19"] { --start: 18; }
#terms-page .clauses[start="22"] { --start: 21; }
#terms-page .clauses[start="29"] { --start: 28; }
#terms-page .clauses > li { position: relative; min-height: 44px; padding: 0 0 27px 56px; counter-increment: clauses; }
#terms-page .clauses > li:last-child { padding-bottom: 0; }
#terms-page .clauses > li::before { content: counter(clauses, decimal-leading-zero); position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: var(--rose); background: #fbecf4; font-size: 10px; font-weight: 900; }
#terms-page .subclauses { margin: 16px 0 2px; padding: 0; list-style: none; counter-reset: subclauses; }
#terms-page .subclauses li { position: relative; padding: 8px 0 8px 31px; counter-increment: subclauses; }
#terms-page .subclauses li::before { content: counter(subclauses, lower-alpha); position: absolute; left: 0; top: 9px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; color: var(--plum); background: var(--rose-soft); font-size: 10px; font-weight: 900; }
#terms-page .legal-notice { display: grid; grid-template-columns: 60px 1fr; align-items: center; gap: 20px; margin-top: 30px; padding: 24px; border-radius: 22px; color: white; background: linear-gradient(135deg, var(--plum-deep), var(--plum)); }
#terms-page .legal-notice span { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 17px; color: var(--plum); background: var(--pink); font-size: 15px; font-weight: 900; }
#terms-page .legal-notice p { margin: 0; color: rgba(255,255,255,.85); line-height: 1.55; }
#terms-page .policy-links { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 30px; }
#terms-page .policy-links a { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 15px; min-height: 95px; padding: 17px; border: 1px solid var(--line); border-radius: 20px; background: #fffafd; transition: transform .2s ease, border-color .2s ease; }
#terms-page .policy-links a:hover { transform: translateY(-2px); border-color: #dcaac8; }
#terms-page .policy-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; color: white; background: var(--rose); font-size: 14px; font-weight: 900; }
#terms-page .policy-links strong, #terms-page .policy-links small { display: block; }
#terms-page .policy-links strong { font-size: 15px; }
#terms-page .policy-links small { margin-top: 3px; color: var(--ink-soft); font-size: 11px; line-height: 1.35; }
#terms-page .policy-links b { color: var(--rose); font-size: 18px; }
#terms-page .company-card { display: grid; grid-template-columns: 1.35fr .8fr 1fr; gap: 1px; margin-top: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: var(--line); }
#terms-page .company-card > div { min-height: 126px; padding: 24px; background: #fffafd; }
#terms-page .company-label { margin: 0 0 13px; color: #9a8598; font-size: 10px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
#terms-page .company-card strong { display: block; color: var(--ink); font-size: 17px; }
#terms-page .company-card small { display: block; margin-top: 6px; font-size: 11px; }
#terms-page .company-card a { color: var(--rose); font-size: 14px; font-weight: 800; }
#terms-page .contact-band { position: relative; overflow: hidden; width: min(1360px, calc(100% - 80px)); margin: 0 auto 100px; padding: 70px; display: grid; grid-template-columns: 1fr 1fr; align-items: end; gap: 90px; border-radius: 40px; color: white; background: linear-gradient(125deg, var(--plum-deep), #651c68 65%, #8e2876); }
#terms-page .contact-band::after { content: ''; position: absolute; width: 420px; height: 420px; right: -140px; top: -270px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
#terms-page .contact-band h2 { margin: 24px 0 0; font-size: clamp(48px, 5vw, 76px); line-height: .98; letter-spacing: -.058em; font-weight: 500; }
#terms-page .contact-copy { position: relative; z-index: 2; }
#terms-page .contact-copy p { max-width: 560px; margin: 0 0 27px; color: rgba(255,255,255,.74); font-size: 18px; line-height: 1.6; }
#terms-page .contact-copy a { display: inline-flex; align-items: center; justify-content: space-between; gap: 40px; min-width: 260px; padding: 18px 22px; border-radius: 16px; background: var(--rose); font-size: 14px; font-weight: 900; }
@media (max-width: 1100px) {
#terms-page .hero-inner { gap: 48px; }
#terms-page .legal-layout { grid-template-columns: 245px minmax(0, 1fr); gap: 26px; }
#terms-page .contents-card { padding: 24px 21px; }
#terms-page .legal-copy { padding-left: 0; }
#terms-page .company-card { grid-template-columns: 1fr 1fr; }
#terms-page .company-card > div:last-child { grid-column: 1 / -1; }
}
@media (max-width: 820px) {
#terms-page .hero-inner { width: min(100% - 38px, 700px); min-height: auto; padding: 76px 0 64px; grid-template-columns: 1fr; gap: 52px; }
#terms-page .hero-copy h1 { font-size: clamp(64px, 17vw, 92px); }
#terms-page .hero-summary { padding: 25px; border-radius: 27px; }
#terms-page .legal-layout { width: min(100% - 32px, 720px); padding: 70px 0 80px; grid-template-columns: 1fr; }
#terms-page .contents-card { position: static; }
#terms-page .contents-card nav { grid-template-columns: 1fr 1fr; column-gap: 18px; }
#terms-page .terms-card { border-radius: 28px; }
#terms-page .section-heading { grid-template-columns: 50px 1fr; gap: 16px; }
#terms-page .section-number { width: 49px; height: 49px; }
#terms-page .policy-links { grid-template-columns: 1fr; }
#terms-page .contact-band { width: min(100% - 32px, 720px); margin-bottom: 70px; padding: 48px 36px; grid-template-columns: 1fr; gap: 38px; border-radius: 30px; }
}
@media (max-width: 560px) {
#terms-page .hero-inner { width: calc(100% - 30px); padding: 64px 0 54px; }
#terms-page .eyebrow { font-size: 11px; }
#terms-page .eyebrow span { width: 26px; }
#terms-page .hero-copy h1 { margin-top: 28px; font-size: clamp(58px, 18vw, 78px); }
#terms-page .hero-intro { font-size: 17px; }
#terms-page .hero-summary { padding: 20px; }
#terms-page .hero-summary li { grid-template-columns: 46px 1fr; gap: 13px; padding: 15px 0; }
#terms-page .hero-summary li span { width: 42px; height: 42px; }
#terms-page .hero-summary li p { font-size: 13px; }
#terms-page .legal-layout { width: calc(100% - 24px); padding: 48px 0 60px; gap: 18px; }
#terms-page .contents-card { padding: 24px 20px; border-radius: 24px; }
#terms-page .contents-card h2 { font-size: 25px; }
#terms-page .contents-card nav { grid-template-columns: 1fr; }
#terms-page .contents-card nav a { padding: 9px 0; }
#terms-page .terms-content { gap: 15px; }
#terms-page .terms-card { padding: 25px 20px; border-radius: 24px; }
#terms-page .section-heading { margin-bottom: 24px; padding-bottom: 22px; }
#terms-page .section-heading h2 { font-size: 28px; }
#terms-page .legal-copy { font-size: 14px; line-height: 1.72; }
#terms-page .clauses > li { padding: 0 0 24px 45px; }
#terms-page .clauses > li::before { width: 32px; height: 32px; border-radius: 10px; }
#terms-page .subclauses li { padding-left: 28px; }
#terms-page .legal-notice { grid-template-columns: 1fr; gap: 15px; padding: 20px; }
#terms-page .company-card { grid-template-columns: 1fr; }
#terms-page .company-card > div:last-child { grid-column: auto; }
#terms-page .company-card > div { min-height: auto; padding: 20px; }
#terms-page .policy-links a { grid-template-columns: 42px 1fr auto; }
#terms-page .contact-band { width: calc(100% - 24px); padding: 36px 25px; border-radius: 26px; }
#terms-page .contact-band h2 { font-size: 46px; }
#terms-page .contact-copy p { font-size: 16px; }
#terms-page .contact-copy a { min-width: 100%; }
}

#terms-page section[id] { scroll-margin-top: 108px; }
#terms-page .contents-card { max-height: calc(100vh - 128px); overflow-y: auto; }
#terms-page .legal-copy { overflow-wrap: anywhere; }
@media (max-width: 820px) { #terms-page .contents-card { max-height: none; } }
@media (max-width: 520px) { body.legal-page { padding-top: 76px; } #terms-page section[id] { scroll-margin-top: 96px; } }
