/* Policy Pages Shared Styles */

/* Hero Section */
.policy-hero {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
    min-height: 70vh;
    display: flex;
    align-items: center;
    padding: 3rem 0;
}

.policy-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    z-index: 1;
}

.policy-hero .container {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    backdrop-filter: blur(10px);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    opacity: 0.9;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.policy-meta {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.1);
    padding: 8px 16px;
    border-radius: 25px;
    backdrop-filter: blur(10px);
}

.meta-item i {
    color: #ffd93d;
}

/* Policy Content */
.policy-content {
    padding: 4rem 0;
    background: #f8f9fa;
}

/* Navigation */
.policy-nav {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 2rem;
    margin-bottom: 2rem;
}

.policy-nav h5 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid #e9ecef;
}

.nav-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.nav-list li {
    margin-bottom: 0.5rem;
}

.nav-list a {
    display: block;
    color: #6c757d;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.nav-list a:hover {
    background: #f8f9fa;
    color: #2c3e50;
    border-left-color: #6366f1;
}

.nav-list a.active {
    background: linear-gradient(45deg, #dc3545, #6366f1);
    color: white;
    border-left-color: transparent;
}

/* Policy Document */
.policy-document {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.policy-section {
    margin-bottom: 3rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e9ecef;
}

.policy-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.policy-section h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 3px solid transparent;
    border-image: linear-gradient(45deg, #dc3545, #6366f1) 1;
}

.policy-section h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 1rem;
    margin-top: 2rem;
}

.policy-section h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #495057;
    margin-bottom: 0.75rem;
    margin-top: 1.5rem;
}

.section-intro {
    font-size: 1.1rem;
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 2rem;
    font-style: italic;
}

.policy-section p {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.policy-section ul,
.policy-section ol {
    color: #6c757d;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
}

.policy-section li {
    margin-bottom: 0.5rem;
}

.policy-section strong {
    color: #495057;
    font-weight: 600;
}

/* Special Content Blocks */
.important-notice {
    background: linear-gradient(45deg, rgba(220, 53, 69, 0.1), rgba(99, 102, 241, 0.1));
    border: 1px solid rgba(220, 53, 69, 0.2);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.important-notice h4 {
    color: #dc3545;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.important-notice i {
    color: #dc3545;
}

/* Grid Layouts */
.purpose-grid,
.use-cases,
.security-measures,
.rights-grid,
.service-grid,
.prohibited-grid,
.commitment-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.purpose-item,
.use-case,
.security-item,
.right-item,
.service-item,
.prohibited-item,
.commitment-item {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.purpose-item:hover,
.use-case:hover,
.security-item:hover,
.right-item:hover,
.service-item:hover,
.prohibited-item:hover,
.commitment-item:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.purpose-item h4,
.use-case h4,
.security-item h4,
.right-item h4,
.service-item h4,
.prohibited-item h4,
.commitment-item h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.purpose-item i,
.use-case i,
.security-item i,
.right-item i,
.commitment-item i {
    color: #6366f1;
    font-size: 1.2rem;
}

.prohibited-item i {
    color: #dc3545;
    font-size: 1.2rem;
}

/* Contact Information */
.contact-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.contact-method {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.contact-method:hover {
    background: white;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
}

.contact-method h4 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.contact-method i {
    color: #6366f1;
    font-size: 1.2rem;
}

.contact-method a {
    color: #6366f1;
    text-decoration: none;
    font-weight: 500;
}

.contact-method a:hover {
    color: #dc3545;
}

/* Cookie-specific Styles */
.cookie-categories {
    margin: 2rem 0;
}

.cookie-category {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

.cookie-category.essential {
    border-color: #28a745;
}

.cookie-category.analytics {
    border-color: #17a2b8;
}

.cookie-category.functional {
    border-color: #ffc107;
}

.cookie-category.marketing {
    border-color: #dc3545;
}

.category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.category-header h3 {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.cookie-status {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
}

.cookie-status.required {
    background: #28a745;
    color: white;
}

.cookie-status.optional {
    background: #6c757d;
    color: white;
}

.cookie-details {
    margin-top: 1.5rem;
}

.cookie-list {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.cookie-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f8f9fa;
    border-radius: 8px;
    font-size: 0.9rem;
}

.cookie-item strong {
    color: #2c3e50;
    font-family: 'Courier New', monospace;
}

.cookie-item span {
    color: #6c757d;
    font-size: 0.85rem;
}

/* Cookie Settings Interface */
.cookie-settings-demo {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 2rem 0;
}

.setting-item {
    padding: 1.5rem;
    border: 1px solid #e9ecef;
    border-radius: 12px;
    margin-bottom: 1rem;
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.setting-header h4 {
    margin: 0;
    color: #2c3e50;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .slider {
    background-color: #6366f1;
}

input:focus + .slider {
    box-shadow: 0 0 1px #6366f1;
}

input:checked + .slider:before {
    transform: translateX(26px);
}

.toggle-switch.disabled .slider {
    background-color: #28a745;
    cursor: not-allowed;
}

.toggle-switch.disabled input {
    cursor: not-allowed;
}

.cookie-count {
    font-size: 0.85rem;
    color: #6c757d;
    margin-top: 0.5rem;
}

.settings-actions {
    margin-top: 2rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.settings-actions .btn {
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
}

.settings-actions .btn-primary {
    background: linear-gradient(45deg, #dc3545, #6366f1);
    color: white;
}

.settings-actions .btn-secondary {
    background: #6c757d;
    color: white;
}

.settings-actions .btn-outline-secondary {
    background: transparent;
    color: #6c757d;
    border: 2px solid #6c757d;
}

.settings-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

/* Third-party Services */
.third-party-services {
    margin: 2rem 0;
}

.service-category {
    margin-bottom: 2rem;
}

.service-list {
    display: grid;
    gap: 1rem;
}

.service-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    background: #f8f9fa;
    border-radius: 12px;
    border: 1px solid #e9ecef;
}

.service-info h4 {
    margin: 0 0 0.5rem 0;
    color: #2c3e50;
}

.service-info p {
    margin: 0 0 0.75rem 0;
    color: #6c757d;
    font-size: 0.9rem;
}

.service-links {
    display: flex;
    gap: 1rem;
}

.service-links a {
    color: #6366f1;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
}

.service-links a:hover {
    color: #dc3545;
}

.cookie-duration {
    font-size: 0.85rem;
    color: #6c757d;
    font-weight: 500;
    white-space: nowrap;
}

/* Terms-specific Styles */
.acceptance-details,
.services-overview,
.obligations-list,
.payment-structure,
.ip-framework,
.confidentiality-framework,
.liability-framework,
.termination-terms,
.resolution-process,
.modification-process,
.legal-framework {
    margin: 2rem 0;
}

.disclaimer-box {
    background: rgba(255, 193, 7, 0.1);
    border: 1px solid rgba(255, 193, 7, 0.3);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.disclaimer-box h4 {
    color: #856404;
    margin-bottom: 1rem;
}

.pricing-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.pricing-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.pricing-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.late-payment-info {
    background: rgba(220, 53, 69, 0.05);
    border: 1px solid rgba(220, 53, 69, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.ip-category,
.work-product-terms {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1rem 0;
}

.excluded-damages {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.damage-type {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.damage-type h4 {
    color: #dc3545;
    margin-bottom: 0.5rem;
}

.termination-effects {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.arbitration-terms {
    background: rgba(99, 102, 241, 0.05);
    border: 1px solid rgba(99, 102, 241, 0.1);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.client-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.option-item {
    background: #f8f9fa;
    padding: 1rem;
    border-radius: 8px;
    text-align: center;
}

.option-item h4 {
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

/* Responsive Design */

/* Large Screens and Tablets */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
    
    .policy-document {
        padding: 2.5rem;
    }
    
    .policy-nav {
        padding: 1.5rem;
    }
}

/* Tablets */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.75rem;
    }
    
    .policy-hero {
        min-height: 60vh;
        padding: 2rem 0;
    }
    
    .policy-document {
        padding: 2rem;
    }
    
    .policy-nav {
        position: static;
        margin-bottom: 2rem;
    }
    
    .meta-item {
        font-size: 0.85rem;
    }
    
    .purpose-grid,
    .security-measures,
    .rights-grid,
    .contact-options {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

/* Mobile Landscape and Small Tablets */
@media (max-width: 768px) {
    .policy-hero {
        min-height: 50vh;
        padding: 1.5rem 0;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-description {
        font-size: 1.1rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .policy-meta {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .policy-content {
        padding: 2rem 0;
    }
    
    .policy-document {
        padding: 1.5rem;
    }
    
    .policy-nav {
        padding: 1rem;
    }
    
    .nav-list a {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .purpose-grid,
    .use-cases,
    .security-measures,
    .rights-grid,
    .service-grid,
    .prohibited-grid,
    .commitment-grid,
    .contact-options {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .purpose-item,
    .use-case,
    .security-item,
    .right-item,
    .service-item,
    .prohibited-item,
    .commitment-item,
    .contact-method {
        padding: 1.25rem;
        touch-action: manipulation;
    }
    
    .service-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .service-links {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .settings-actions {
        flex-direction: column;
    }
    
    .settings-actions .btn {
        width: 100%;
        touch-action: manipulation;
    }
}

/* Mobile Portrait */
@media (max-width: 576px) {
    .hero-title {
        font-size: 2rem;
        line-height: 1.1;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .policy-document {
        padding: 1rem;
    }
    
    .policy-nav {
        padding: 0.75rem;
    }
    
    .nav-list a {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .policy-section h2 {
        font-size: 1.5rem;
    }
    
    .policy-section h3 {
        font-size: 1.1rem;
    }
    
    .section-intro {
        font-size: 1rem;
    }
    
    .purpose-item,
    .use-case,
    .security-item,
    .right-item,
    .service-item,
    .prohibited-item,
    .commitment-item,
    .contact-method {
        padding: 1rem;
    }
    
    .cookie-category {
        padding: 1.5rem;
    }
    
    .setting-item {
        padding: 1rem;
    }
    
    .btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
    
    .container {
        padding-left: 0.75rem;
        padding-right: 0.75rem;
    }
    
    .hero-badge {
        padding: 4px 12px;
        font-size: 0.7rem;
    }
}

/* Extra Small Mobile */
@media (max-width: 375px) {
    .hero-title {
        font-size: 1.75rem;
    }
    
    .policy-document {
        padding: 0.75rem;
    }
    
    .policy-nav {
        padding: 0.5rem;
    }
    
    .purpose-item,
    .use-case,
    .security-item,
    .right-item,
    .service-item,
    .prohibited-item,
    .commitment-item,
    .contact-method {
        padding: 0.75rem;
    }
    
    .cookie-category {
        padding: 1rem;
    }
    
    .setting-item {
        padding: 0.75rem;
    }
}

/* Touch Improvements */
@media (max-width: 768px) {
    .purpose-item:active,
    .use-case:active,
    .security-item:active,
    .right-item:active,
    .service-item:active,
    .prohibited-item:active,
    .commitment-item:active,
    .contact-method:active {
        transform: scale(0.98);
    }
    
    .btn:active {
        transform: scale(0.95);
    }
    
    .btn:focus {
        outline: 3px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }
    
    .nav-list a:focus {
        outline: 2px solid rgba(99, 102, 241, 0.5);
        outline-offset: 2px;
    }
}

/* High DPI Displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .purpose-item,
    .use-case,
    .security-item,
    .right-item,
    .service-item,
    .prohibited-item,
    .commitment-item {
        image-rendering: -webkit-optimize-contrast;
        image-rendering: crisp-edges;
    }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .purpose-item:hover,
    .use-case:hover,
    .security-item:hover,
    .right-item:hover,
    .service-item:hover,
    .prohibited-item:hover,
    .commitment-item:hover,
    .contact-method:hover {
        transform: none;
    }
    
    .slider {
        transition: none;
    }
    
    .slider:before {
        transition: none;
    }
}

/* Landscape Mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .policy-hero {
        min-height: 90vh;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.5rem;
    }
    
    .hero-description {
        font-size: 1rem;
        margin-bottom: 1rem;
    }
    
    .policy-content {
        padding: 1.5rem 0;
    }
}

/* Print Styles */
@media print {
    .policy-hero {
        background: white !important;
        color: black !important;
        min-height: auto;
        padding: 1rem 0;
    }
    
    .policy-nav {
        display: none;
    }
    
    .policy-document {
        box-shadow: none;
        padding: 0;
    }
    
    .policy-section {
        break-inside: avoid;
    }
    
    .purpose-item,
    .use-case,
    .security-item,
    .right-item,
    .service-item,
    .prohibited-item,
    .commitment-item,
    .contact-method,
    .cookie-category {
        box-shadow: none;
        border: 1px solid #ddd;
        break-inside: avoid;
    }
    
    .btn {
        background: transparent !important;
        color: black !important;
        border: 1px solid black !important;
    }
    
    .toggle-switch {
        display: none;
    }
    
    a {
        color: black !important;
        text-decoration: underline !important;
    }
}
