/**
 * Kasutustingimused (Terms of Use) Page Styles
 */

/* Match static site exactly - only target content area */
body.page-template-page-kasutustingimused-php {
    background-color: #f9fafb !important;
}

/* Apply Scala Sans font only to main content area */
.page-template-page-kasutustingimused-php .flex-1,
.page-template-page-kasutustingimused-php .flex-1 * {
    font-family: 'Scala Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Center content with auto margins */
.page-template-page-kasutustingimused-php .flex-1 .mx-auto {
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Match static site heading styles exactly */
.page-template-page-kasutustingimused-php .flex-1 h1 {
    color: #5d0f57 !important;
    font-size: 48px !important;
    font-weight: 400 !important;
    letter-spacing: -1.2px !important;
    line-height: 48px !important;
    margin-top: 64px !important;
    margin-bottom: 48px !important;
}

.page-template-page-kasutustingimused-php .flex-1 h2 {
    color: #5d0f57 !important;
    font-size: 24px !important;
    font-weight: 400 !important;
    line-height: 32px !important;
    margin-top: 48px !important;
    margin-bottom: 32px !important;
}

/* Intro paragraphs with mb-6 should have 24px margin */
.page-template-page-kasutustingimused-php .flex-1 .mt-10>p.mb-6 {
    margin-bottom: 24px !important;
}

/* Last intro paragraph should have no bottom margin */
.page-template-page-kasutustingimused-php .flex-1 .mt-10>p:last-child {
    margin-bottom: 0 !important;
}

/* Last paragraph in section space-y-4 containers should have no bottom margin */
.page-template-page-kasutustingimused-php .flex-1 section .space-y-4>p:last-child {
    margin-bottom: 0 !important;
}

.page-template-page-kasutustingimused-php .flex-1 p {
    color: oklch(0.373 0.034 259.733) !important;
}

.page-template-page-kasutustingimused-php .flex-1 section {
    margin-bottom: 48px !important;
}

/* List styling - make bullets visible */
.page-template-page-kasutustingimused-php .flex-1 ul {
    list-style-type: disc !important;
    padding-left: 2rem !important;
    margin-bottom: 1rem !important;
}

.page-template-page-kasutustingimused-php .flex-1 ol {
    list-style-type: decimal !important;
    padding-left: 2rem !important;
    margin-bottom: 1rem !important;
}

.page-template-page-kasutustingimused-php .flex-1 ul li {
    margin-bottom: 8px !important;
}

/* Remove ALL wrapper constraints to match static site */
.page-template-page-kasutustingimused-php #page.site,
.page-template-page-kasutustingimused-php .site,
.page-template-page-kasutustingimused-php #page {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.page-template-page-kasutustingimused-php .site-content,
.page-template-page-kasutustingimused-php #content {
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    width: 100% !important;
}

/* Footer styling */
.page-template-page-kasutustingimused-php footer {
    background-color: white !important;
    margin-top: auto !important;
}

/* Terms Acceptance Form Styles */
.terms-acceptance-box {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    padding: 2rem;
    margin-top: 3rem;
}

.terms-checkbox-wrapper {
    margin-bottom: 2rem;
}

.terms-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    padding: 1.25rem;
    background: white;
    border-radius: 0.5rem;
    border: 1px solid #d1d5db;
}

.terms-checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    margin-right: 1rem;
    width: 1.25rem;
    height: 1.25rem;
    cursor: pointer;
    accent-color: #5d0f57;
}

.terms-checkbox-label span {
    font-weight: 400;
    color: #1f2937;
    line-height: 1.6;
}

.terms-submit-wrapper {
    text-align: center;
}

.terms-submit-btn {
    background: #5d0f57;
    color: white;
    padding: 0.875rem 2.5rem;
    border: none;
    border-radius: 0.375rem;
    font-size: 1rem;
    font-weight: 400;
    cursor: pointer;
    transition: all 0.2s;
    opacity: 0.5;
}

.terms-submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}

.terms-submit-btn:not(:disabled) {
    opacity: 1;
    cursor: pointer;
}

.terms-submit-btn:not(:disabled):hover {
    background: #4a0c44;
}