/*!
 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../../css/variables.scss';

.footer-container {
  background: #f8f8f8;
  border-top: 1px solid #0054d1;

  .footer-body {
    max-width: $contentWidth;
    margin: 0 auto;
    box-sizing: border-box;
    padding: 40px 40px 0;
    @media screen and (max-width: $mobileWidth) {
      padding-left: 20px;
      padding-right: 20px;
    }
    .docusaurus-power {
      font-size: 14px;
      color: #ccc;
      line-height: 18px;
      margin-bottom: 40px;
    }
    img {
      height: 36px;
      margin-right: 20px;
      vertical-align: middle;
    }
    .cols-container {
      margin-bottom: 60px;
      .col {
        display: inline-block;
        box-sizing: border-box;
        vertical-align: top;
      }
      .col-12 {
        width: 50%;
        padding-right: 125px;
      }
      .col-6 {
        width: 25%;
      }
      h3 {
        font-family: Avenir-Medium;
        font-weight: 700;
        font-size: 18px;
        color: #333;
        line-height: 18px;
        margin-bottom: 20px;
      }
      p {
        font-family: Avenir-Medium;
        font-size: 12px;
        color: #999;
        line-height: 18px;
      }
      dl {
        font-family: Avenir-Medium;
        font-weight: 700;
        line-height: 18px;
      }
      dt {
        font-weight: bold;
        font-size: 18px;
        color: #333;
        margin-bottom: 20px;
      }
      dd {
        padding: 0;
        margin: 0;
        a {
          text-decoration: none;
          display: block;
          font-size: 14px;
          color: #999;
          margin: 10px 0;
        }
        a:hover {
          color: $brandColor;
        }
      }
    }
    .copyright {
      border-top: 1px solid #ccc;
      min-height: 60px;
      line-height: 20px;
      text-align: center;
      font-family: Avenir-Medium;
      font-size: 12px;
      color: #999;
      display: flex;
      align-items: center;
      span {
        display: inline-block;
        margin: 0 auto;
      }
    }
  }
}

@media screen and (max-width: $mobileWidth) {
  .footer-container {
    .footer-body {
      .cols-container {
        .col {
          width: 100%;
          text-align: center;
          padding: 0;
        }
      }
    }
  }
}
