* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: rgba(141, 132, 132, 0.281);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-section {
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 78, 134, 0.041);
    background-color: #ffffff;
    max-width: 365px;
    width: 100%;
    height: 99vh;
    margin: 5px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Navigation */
.navigation-bar {
    padding: 20px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.navigation-bar a {
    display: inline-block;
    line-height: 0;
}

.navigation-bar img {
    width: auto;
}

.back-btn {
    background: none;
    border: none;
    outline: none;
    padding: 6px 10px;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
}

.back-btn:hover {
    background: #f5f5f5;
}

/* Scrollable Legal Content */
.terms-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 24px 30px;
    scroll-behavior: smooth;
}

.terms-content h1 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    text-align: center;
    margin-bottom: 4px;
}

.last-updated {
    font-size: 11px;
    color: #888;
    text-align: center;
    margin-bottom: 24px;
}

.terms-content h2 {
    font-size: 15px;
    font-weight: 700;
    color: #25ac25;
    margin: 28px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid #25ac25;
}

.terms-content h3 {
    font-size: 13px;
    font-weight: 600;
    color: #222;
    margin: 20px 0 8px;
}

.terms-content h4 {
    font-size: 12px;
    font-weight: 600;
    color: #444;
    margin: 14px 0 6px;
}

.terms-content p {
    font-size: 12px;
    line-height: 1.65;
    color: #444;
    margin-bottom: 10px;
}

.terms-content .notice {
    background: #fff8e1;
    border-left: 3px solid #f9a825;
    padding: 10px 12px;
    border-radius: 4px;
    margin: 12px 0;
    font-size: 12px;
}

.terms-content ul {
    margin: 8px 0 12px 20px;
    font-size: 12px;
    line-height: 1.65;
    color: #444;
}

.terms-content li {
    margin-bottom: 4px;
}

/* Tables */
.terms-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 10px 0 16px;
    font-size: 11px;
}

.terms-content thead th {
    background: #f5f5f5;
    font-weight: 600;
    text-align: left;
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    color: #333;
}

.terms-content tbody td {
    padding: 8px 10px;
    border: 1px solid #e0e0e0;
    color: #444;
    vertical-align: top;
    line-height: 1.5;
    word-break: break-word;
}

.terms-content tbody tr:nth-child(even) {
    background: #fafafa;
}

/* Consent Statement */
.consent-statement {
    margin-top: 28px;
    padding: 16px;
    background: #f0f9f0;
    border-radius: 8px;
    border: 1px solid #c8e6c9;
}

.consent-statement p {
    font-size: 12px;
    text-align: center;
}

.consent-statement .copyright {
    font-size: 11px;
    color: #888;
    margin-top: 12px;
    margin-bottom: 0;
}

/* Footer */
.footer {
    flex-shrink: 0;
    padding: 12px 20px;
    position: relative;
}

.logo-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    z-index: 1;
}

.logo-container img {
    width: 60px;
    margin-bottom: 4px;
}

.logo-container nav ul {
    list-style: none;
    display: flex;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.logo-container nav a {
    font-size: 10px;
    color: #666;
    text-decoration: none;
}

.logo-container nav a:hover {
    text-decoration: underline;
}

.logo-container span {
    font-size: 10px;
    color: #999;
}

.balls {
    position: absolute;
    bottom: 0;
    right: 0;
    z-index: 0;
}

.balls img {
    width: 80px;
    opacity: 0.3;
}

/* Accessibility: Reduced motion support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
