/* =========================================================
   Terms & Conditions – Matches Privacy Policy Design System
   :root --brand (#841a78)  |  --accent (#E0C5DD)
   ========================================================= */

/* ─── Container ─── */
.tc-container {
    width: 100%;
    max-width: 56rem;
    margin: 0 auto;
    padding: 0 1.25rem;
}
@media (min-width: 768px) {
    .tc-container { padding: 0 2rem; }
}

/* ─── Page Shell ─── */
.tc-page {
    background: #fdfbfc;
    overflow-x: hidden;
}

/* =========================================================
   1. HERO – Rounded card with gradient + particles (PP style)
   ========================================================= */
.tc-hero {
    position: relative;
    margin: 1rem .75rem 0;
    border-radius: 28px;
    min-height: 38vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    box-shadow:
        0 30px 80px rgba(132,26,120,.20),
        0 8px 24px rgba(0,0,0,.10);
}

@media (min-width: 768px) {
    .tc-hero {
        margin: 1.25rem 1.5rem 0;
        border-radius: 36px;
        min-height: 40vh;
        box-shadow:
            0 40px 100px rgba(132,26,120,.22),
            0 12px 32px rgba(0,0,0,.08);
    }
}

@media (min-width: 1024px) {
    .tc-hero {
        margin: 1.5rem 2rem 0;
        min-height: 38vh;
    }
}

/* Background */
.tc-hero__bg {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        radial-gradient(ellipse 130% 90% at 50% 15%,
            color-mix(in srgb, var(--accent) 30%, var(--brand)),
            var(--brand) 65%,
            color-mix(in srgb, var(--brand) 85%, #1a0520) 100%);
    z-index: 0;
}

/* Floating orbs */
.tc-hero__orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    filter: blur(60px);
    will-change: transform;
}
.tc-hero__orb--1 {
    width: 280px; height: 280px;
    top: -60px; left: -40px;
    background: color-mix(in srgb, var(--accent) 22%, transparent);
    animation: tcOrb1 8s ease-in-out infinite;
}
.tc-hero__orb--2 {
    width: 200px; height: 200px;
    bottom: -30px; right: -30px;
    background: rgba(255,255,255,.06);
    animation: tcOrb2 10s ease-in-out infinite;
}

@keyframes tcOrb1 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(25px, 18px) scale(1.08); }
}
@keyframes tcOrb2 {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50% { transform: translate(-20px, -15px) scale(1.1); }
}

/* Particles */
.tc-hero__particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}
.tc-particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    animation: tcFloat linear infinite;
    will-change: transform;
}

@keyframes tcFloat {
    0%   { transform: translateY(0) scale(1); }
    50%  { transform: translateY(-35px) scale(1.3); }
    100% { transform: translateY(0) scale(1); }
}

/* Content */
.tc-hero__content {
    position: relative;
    z-index: 2;
    padding: 4.5rem 1.5rem 3rem;
    max-width: 42rem;
}
@media (min-width: 768px) {
    .tc-hero__content {
        padding: 5rem 2rem 3.5rem;
    }
}

/* Badge */
.tc-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 999px;
    padding: .5rem 1.25rem;
    font-size: .82rem;
    font-weight: 700;
    color: var(--accent);
    letter-spacing: .04em;
    margin-bottom: 1.25rem;
    box-shadow: 0 8px 24px rgba(0,0,0,.10);
    animation: tcBadgeIn .8s ease .3s both;
}

@keyframes tcBadgeIn {
    from { opacity: 0; transform: translateY(14px) scale(.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Title */
.tc-hero__title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -.03em;
    margin: 0 0 1rem;
    text-shadow: 0 4px 40px rgba(0,0,0,.28);
    animation: tcTitleIn 1s cubic-bezier(.16,1,.3,1) .5s both;
}

@keyframes tcTitleIn {
    from { opacity: 0; transform: translateY(32px) scale(.95); filter: blur(6px); }
    to   { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

/* Tagline */
.tc-hero__tagline {
    margin: 0 auto;
    font-size: clamp(.9rem, 1.8vw, 1.05rem);
    color: rgba(255,255,255,.84);
    line-height: 1.8;
    animation: tcTagIn .8s ease .9s both;
}

@keyframes tcTagIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =========================================================
   2. AGREEMENT NOTICE – Highlight glass card
   ========================================================= */
.tc-notice {
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    margin: 2.5rem auto;
    padding: 1.5rem 1.75rem;
    border-radius: 20px;
    background: rgba(255,255,255,.78);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(132,26,120,.08);
    box-shadow:
        0 16px 40px rgba(132,26,120,.07),
        0 4px 12px rgba(0,0,0,.03),
        0 1px 0 rgba(255,255,255,.8) inset;
}

.tc-notice__icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.1rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 22%, transparent);
}

.tc-notice__body {
    flex: 1;
    min-width: 0;
}

.tc-notice__title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 .4rem;
    letter-spacing: -.01em;
}

.tc-notice__text {
    margin: 0;
    font-size: .9rem;
    line-height: 1.8;
    color: rgba(30,41,59,.82);
}

/* =========================================================
   3. TERMS SECTIONS – Premium cards with number + icon + list
   ========================================================= */
.tc-sections {
    padding: 1rem 0 2rem;
}

.tc-section {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 1.75rem 1.75rem 1.75rem 5.5rem;
    margin-bottom: 1.25rem;
    border-radius: 22px;
    background: rgba(255,255,255,.82);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(132,26,120,.06);
    box-shadow:
        0 16px 44px rgba(132,26,120,.06),
        0 4px 12px rgba(0,0,0,.03),
        0 1px 0 rgba(255,255,255,.85) inset;
    overflow: hidden;
    transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s ease, border-color .3s ease;
}

.tc-section::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    border-radius: 22px 22px 0 0;
    background: linear-gradient(90deg, var(--brand), var(--accent));
    opacity: 0;
    transition: opacity .3s ease;
}

.tc-section:hover {
    transform: translateY(-5px);
    border-color: rgba(132,26,120,.12);
    box-shadow:
        0 24px 60px rgba(132,26,120,.10),
        0 8px 20px rgba(0,0,0,.04),
        0 1px 0 rgba(255,255,255,.85) inset;
}

.tc-section:hover::before {
    opacity: 1;
}

/* Shimmer */
.tc-section__shimmer {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, transparent 0%, rgba(255,255,255,.3) 42%, transparent 58%);
    transform: translateX(-140%);
    transition: transform .75s cubic-bezier(.2,.8,.2,1);
    pointer-events: none;
    border-radius: 22px;
    z-index: 0;
}
.tc-section:hover .tc-section__shimmer {
    transform: translateX(140%);
}

/* Step number */
.tc-section__number {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    font-size: 2rem;
    font-weight: 900;
    line-height: 1;
    color: color-mix(in srgb, var(--accent) 50%, transparent);
    letter-spacing: -.02em;
    z-index: 1;
    pointer-events: none;
    transition: color .3s ease;
}

[dir="rtl"] .tc-section__number {
    left: auto;
    right: 1.25rem;
}

.tc-section:hover .tc-section__number {
    color: color-mix(in srgb, var(--brand) 25%, transparent);
}

[dir="rtl"] .tc-section {
    padding: 1.75rem 5.5rem 1.75rem 1.75rem;
}

/* Icon */
.tc-section__icon {
    position: relative; z-index: 1;
    flex-shrink: 0;
    width: 48px; height: 48px;
    border-radius: 14px;
    display: grid;
    place-items: center;
    font-size: 1.15rem;
    color: #fff;
    background: linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 65%, var(--accent)));
    box-shadow: 0 8px 22px color-mix(in srgb, var(--brand) 22%, transparent);
    transition: transform .3s ease, box-shadow .3s ease;
}

.tc-section:hover .tc-section__icon {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 12px 28px color-mix(in srgb, var(--brand) 30%, transparent);
}

/* Body */
.tc-section__body {
    position: relative; z-index: 1;
    flex: 1;
    min-width: 0;
}

.tc-section__title {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--brand);
    margin: 0 0 .65rem;
    letter-spacing: -.01em;
}

/* Ordered list inside section */
.tc-section__list {
    margin: 0;
    padding-left: 1.25rem;
    font-size: .9rem;
    line-height: 1.85;
    color: rgba(30,41,59,.82);
    counter-reset: tc-item;
    list-style: none;
}

[dir="rtl"] .tc-section__list {
    padding-left: 0;
    padding-right: 1.25rem;
}

.tc-section__list li {
    position: relative;
    margin: .6rem 0;
    padding-left: 1.75rem;
}

[dir="rtl"] .tc-section__list li {
    padding-left: 0;
    padding-right: 1.75rem;
}

.tc-section__list li::before {
    counter-increment: tc-item;
    content: counter(tc-item);
    position: absolute;
    left: 0;
    top: .15em;
    width: 20px; height: 20px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--accent) 30%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 45%, #fff);
    color: var(--brand);
    font-size: .65rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

[dir="rtl"] .tc-section__list li::before {
    left: auto;
    right: 0;
}

.tc-section__list li strong {
    color: var(--brand);
    font-weight: 800;
}

/* =========================================================
   4. FOOTER NOTE – Glass card
   ========================================================= */
.tc-foot {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 0 auto 2rem;
    padding: 1.25rem 1.5rem;
    border-radius: 16px;
    background: color-mix(in srgb, var(--accent) 12%, #fff);
    border: 1px solid color-mix(in srgb, var(--accent) 25%, #fff);
    box-shadow: 0 8px 24px rgba(132,26,120,.04);
}

.tc-foot__icon {
    flex-shrink: 0;
    font-size: 1.25rem;
    color: var(--brand);
    opacity: .7;
}

.tc-foot__text {
    margin: 0;
    font-size: .85rem;
    line-height: 1.7;
    color: rgba(30,41,59,.72);
    font-weight: 600;
}

/* =========================================================
   5. SCROLL REVEAL (same as PP)
   ========================================================= */
.tc-reveal {
    opacity: 0;
    transform: translateY(30px) scale(.98);
    transition:
        opacity .65s cubic-bezier(.16,1,.3,1),
        transform .65s cubic-bezier(.16,1,.3,1);
    transition-delay: var(--reveal-delay, 0ms);
}
.tc-reveal.tc-revealed {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* =========================================================
   6. RESPONSIVE
   ========================================================= */
@media (max-width: 767px) {
    .tc-hero {
        min-height: 34vh;
        margin: .5rem .5rem 0;
        border-radius: 22px;
    }
    .tc-hero__content {
        padding: 3.5rem 1rem 2.5rem;
    }
    .tc-section {
        flex-direction: column;
        gap: .75rem;
        padding: 3rem 1.25rem 1.5rem 1.25rem;
    }
    [dir="rtl"] .tc-section {
        padding: 3rem 1.25rem 1.5rem 1.25rem;
    }
    .tc-section__number {
        top: .75rem;
        left: 1rem;
        font-size: 1.6rem;
    }
    [dir="rtl"] .tc-section__number {
        left: auto;
        right: 1rem;
    }
    .tc-notice {
        flex-direction: column;
        gap: .75rem;
        padding: 1.25rem;
    }
    .tc-foot {
        flex-direction: column;
        text-align: center;
        gap: .5rem;
        padding: 1rem 1.25rem;
    }
}

/* =========================================================
   7. REDUCED MOTION
   ========================================================= */
@media (prefers-reduced-motion: reduce) {
    .tc-reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
    .tc-particle,
    .tc-hero__orb,
    .tc-hero__badge,
    .tc-hero__title,
    .tc-hero__tagline {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
    .tc-section__shimmer { display: none !important; }
}
