.settings-heading { margin-bottom: 26px; }
.settings-eyebrow { display: block; color: #786959; font-size: 11px; font-weight: 750; letter-spacing: .13em; line-height: 1.7; }
.settings-heading h1 { margin: 7px 0 10px; color: #243d43; font-size: clamp(28px, 4vw, 38px); letter-spacing: -.035em; }
.settings-heading p, .settings-card p, .settings-note p, .settings-dialog p { color: #647176; line-height: 1.7; font-size: 14px; }
.settings-tabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin: 0 0 26px; border: 1px solid #e5e2db; background: #f1efea; border-radius: 16px; }
.settings-tabs a { padding: 12px 16px; color: #626967; text-decoration: none; font-size: 13px; font-weight: 650; border-radius: 11px; }
.settings-tabs a[aria-current] { color: #243d43; background: #fff; box-shadow: 0 2px 7px #39483d0b; }
.settings-tabs a:hover { background: #fff9; }
.settings-card { padding: clamp(22px, 4vw, 32px); margin-bottom: 20px; background: #fff; border: 1px solid #e6e6de; border-radius: 22px; box-shadow: 0 5px 24px #2c444004; }
.settings-card h2, .settings-dialog h2 { margin: 0 0 12px; color: #293e43; font-size: 21px; letter-spacing: -.025em; }
.settings-card h3 { color: #374b50; margin: 5px 0 8px; font-size: 15px; }
.settings-card p { margin: 6px 0 12px; }
.settings-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 32px; }
.settings-account { display: flex; align-items: center; gap: 20px; }
.settings-account > div:nth-child(2) { min-width: 0; flex: 1; overflow-wrap: anywhere; }
.settings-account h2 { margin: 3px 0 5px; }
.settings-account p { margin: 0 0 10px; }
.settings-symbol { width: 54px; height: 54px; display: grid; place-items: center; flex-shrink: 0; border-radius: 18px; background: #f2ece3; color: #857050; }
.settings-symbol svg { width: 25px; height: 25px; }
.settings-tag { display: inline-block; background: #f3f1ec; padding: 6px 11px; color: #716450; border-radius: 20px; font-size: 12px; font-weight: 600; }
.settings-link { background: transparent; border: 0; padding: 0; color: #386772; text-decoration: underline; text-underline-offset: 4px; font-size: 13px; font-weight: 650; cursor: pointer; }
.settings-action { display: flex; align-items: center; gap: 28px; padding: 24px 0; border-top: 1px solid #eeece7; }
.settings-action > div { flex: 1; }
.settings-action p { margin: 0; max-width: 570px; }
.settings-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 12px 17px; border-radius: 12px; font-size: 13px; font-weight: 650; text-decoration: none; cursor: pointer; border: 1px solid transparent; line-height: 1.4; flex-shrink: 0; }
.settings-button-outline { color: #44555b; background: #fff; border-color: #d9dedb; }
.settings-button-outline:hover { background: #f6f5f1; }
.settings-button-danger { color: #923f43; background: #fff3f1; border-color: #ecd4d0; }
.settings-button-danger:hover { background: #fbe4e1; }
.settings-button:disabled { opacity: .6; cursor: wait; }
.settings-card .settings-hint, .settings-hint { display: block; color: #798383; font-size: 12px; line-height: 1.7; margin-top: 10px; }
.settings-error { padding: 18px; margin-bottom: 20px; color: #923f43; background: #fff3f1; border: 1px solid #ecd4d0; border-radius: 12px; }
.settings-dialog { padding: 28px; width: min(550px, calc(100vw - 24px)); max-height: calc(100dvh - 32px); border: 1px solid #e4dfd8; border-radius: 22px; color: #33464b; box-shadow: 0 24px 100px #17292f30; }
.settings-dialog::backdrop { background: #17292f66; backdrop-filter: blur(4px); }
.settings-dialog-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.settings-close { background: #f3f1ec; border: 0; border-radius: 50%; width: 36px; height: 36px; cursor: pointer; color: #59676b; display: grid; place-items: center; }
.settings-close svg { width: 18px; height: 18px; }
.settings-removal-list { padding: 15px 15px 15px 32px; border-radius: 12px; background: #faf5f1; font-size: 13px; line-height: 1.8; }
.settings-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; line-height: 1.6; margin: 20px 0; }
.settings-check input { margin-top: 4px; width: 18px; height: 18px; flex-shrink: 0; accent-color: #9d5154; }
.settings-field { display: block; font-size: 13px; line-height: 1.6; margin: 16px 0; }
.settings-field input { display: block; width: 100%; border: 1px solid #d8deda; border-radius: 10px; padding: 12px; margin-top: 6px; color: #2b4148; background: #fff; }
.settings-dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.settings-dialog-actions .settings-button { flex: 1 1 180px; }
.help-search label { display: block; color: #34494e; font-size: 18px; font-weight: 650; margin-bottom: 15px; }
.help-search > div { display: flex; align-items: center; gap: 12px; background: #f8f8f5; border: 1px solid #dfe3dc; border-radius: 12px; padding: 0 14px; }
.help-search svg { width: 22px; flex-shrink: 0; color: #839087; }
.help-search input { background: transparent; border: 0; min-width: 0; width: 100%; padding: 15px 0; color: #33484d; font-size: 15px; }
.help-answers details { border-bottom: 1px solid #eceee7; }
.help-answers details:last-of-type { border: 0; }
.help-answers summary { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 19px 0; cursor: pointer; font-size: 14px; font-weight: 650; line-height: 1.6; color: #344b51; list-style: none; }
.help-answers summary::-webkit-details-marker { display: none; }
.help-answers summary span { font-size: 22px; font-weight: 400; transition: transform .15s; }
.help-answers details[open] summary span { transform: rotate(45deg); }
.help-answers details p { padding-bottom: 12px; max-width: 720px; }
.settings-note { border: 1px solid #e8dfd0; padding: 22px 26px; background: #f8f3ea; color: #776648; border-radius: 16px; margin-bottom: 20px; font-size: 14px; }
.settings-note p { margin-bottom: 0; }
.settings-terms section { padding: 22px 0; scroll-margin-top: 150px; }
.settings-terms section + section { border-top: 1px solid #eceee7; }
.settings-terms nav { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 10px; font-size: 13px; }
.settings-terms a { color: #386772; text-underline-offset: 4px; }
.ads-intro { text-align: center; padding-block: 44px; }
.ads-intro .settings-symbol { margin: 0 auto 16px; }
.ads-intro h2 { margin-top: 20px; font-size: 26px; font-family: Georgia, serif; font-weight: 400; }
.ads-intro p { max-width: 440px; margin: 0 auto 24px; }
.ads-status { gap: 20px; }
.ads-status h2 { font-size: 18px; margin-top: 7px; }
@media(max-width:600px) {
 .settings-tabs { display: grid; grid-template-columns: 1fr 1fr; }
 .settings-tabs a { padding: 11px 10px; font-size: 12px; }
 .settings-grid { grid-template-columns: 1fr; gap: 18px; }
 .settings-account { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; }
 .settings-account > .settings-link { grid-column: 2; margin-left: 0; }
 .settings-action { align-items: flex-start; flex-direction: column; gap: 15px; }
 .settings-action .settings-button { width: 100%; }
 .settings-dialog { padding: 22px 18px; }
 .settings-terms section { scroll-margin-top: 80px; }
 .ads-status { gap: 0; }
}

body.public-terms-page { display: flex; flex-direction: column; min-height: 100dvh; }
.public-terms-page > .main-content { width: 100%; max-width: 1040px; margin: 0 auto; padding: 36px 40px; min-height: 0; flex: 1; }
.terms-public-nav { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px max(24px, calc((100vw - 960px) / 2)); border-bottom: 1px solid #e8e2d9; background: #fffdf9; }
.terms-reading-note { color: #687773; font-size: 13px; line-height: 1.7; margin: 0 0 24px; }
@media(max-width:600px) {
 .public-terms-page > .main-content { padding: 28px 16px; }
 .terms-public-nav { padding: 20px 16px; }
}
