/* Terms of service page and register consent */
.terms-page-shell {
    width: min(100%, 960px);
    margin: 0 auto 18px;
    padding: 0 10px 4px;
}
.terms-hero-card,
.terms-content-card {
    border: 1px solid rgba(218, 173, 91, .32);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(41, 49, 66, .96), rgba(28, 34, 48, .98));
    box-shadow: 0 18px 38px rgba(0, 0, 0, .25);
    color: var(--theme-text, #f5f0ff);
}
.terms-hero-card {
    padding: 24px 26px;
    margin: 10px 0 14px;
}
.terms-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    padding: 6px 11px;
    border-radius: 999px;
    background: rgba(172, 93, 202, .18);
    color: #f0c4ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .2px;
}
.terms-hero-card h1 {
    margin: 0 0 10px;
    color: #fff8ff;
    font-size: clamp(24px, 3.2vw, 36px);
    font-weight: 900;
    line-height: 1.15;
}
.terms-hero-card p {
    max-width: 760px;
    margin: 0;
    color: #e6dff0;
    line-height: 1.7;
    font-size: 14px;
}
.terms-alert-box {
    margin-top: 16px;
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid rgba(244, 196, 113, .35);
    background: rgba(24, 23, 34, .72);
    color: #f4e8cd;
    line-height: 1.6;
    font-size: 13px;
}
.terms-content-card {
    padding: 8px 24px 24px;
}
.terms-section {
    padding: 18px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
}
.terms-section:last-child {
    border-bottom: 0;
}
.terms-section h2 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 11px;
    color: #fff4ff;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.35;
}
.terms-section h2::before {
    content: "";
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 999px;
    background: linear-gradient(135deg, #d784f5, #f2cf76);
    box-shadow: 0 0 14px rgba(211, 125, 244, .55);
}
.terms-section ul {
    display: grid;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}
.terms-section li {
    position: relative;
    padding-left: 21px;
    color: #e8e2ee;
    font-size: 14px;
    line-height: 1.65;
}
.terms-section li::before {
    content: "";
    position: absolute;
    left: 2px;
    top: .72em;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #c879e9;
    box-shadow: 0 0 9px rgba(200, 121, 233, .52);
}
.terms-contact-section p {
    color: #e8e2ee;
    line-height: 1.7;
    margin: 0 0 13px;
}
.terms-support-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 12px;
    color: #fff !important;
    background: linear-gradient(135deg, #8d4ab8, #c576e6);
    text-decoration: none !important;
    font-weight: 800;
    box-shadow: 0 8px 18px rgba(141, 74, 184, .32);
}
.terms-support-link:hover,
.terms-support-link:focus {
    transform: translateY(-1px);
    filter: brightness(1.05);
}
.auth-terms-consent {
    display: flex;
    align-items: flex-start;
    gap: 9px;
    margin: 10px 0 12px;
    padding: 10px 11px;
    border: 1px solid rgba(199, 121, 233, .26);
    border-radius: 13px;
    background: rgba(22, 21, 31, .38);
    color: #eee6f4;
    font-size: 12px;
    line-height: 1.55;
    text-align: left;
}
.auth-terms-consent input {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #b95bda;
}
.auth-terms-consent a {
    color: #f1c1ff;
    font-weight: 800;
    text-decoration: underline;
}
.footer-terms-link,
.content-terms a {
    color: #8c4ab0;
    font-weight: 800;
    text-decoration: underline;
}
@media (max-width: 640px) {
    .terms-page-shell { padding: 0 5px; }
    .terms-hero-card { padding: 20px 16px; border-radius: 15px; }
    .terms-content-card { padding: 4px 16px 18px; border-radius: 15px; }
    .terms-section h2 { font-size: 16px; }
    .terms-section li { font-size: 13px; }
}
